chore:智能客服正常运行
This commit is contained in:
@@ -174,27 +174,39 @@ export class CustomerService {
|
|||||||
break;
|
break;
|
||||||
case 'wxwork':
|
case 'wxwork':
|
||||||
console.log('【跳转企业微信客服】');
|
console.log('【跳转企业微信客服】');
|
||||||
this.openWxworkService(false, config, options);
|
// 修改:强制跳转到AI客服页面
|
||||||
|
console.log('【强制跳转 AI 客服】目标路径: /pages_tool/ai-chat/index');
|
||||||
|
this.openDifyService();
|
||||||
break;
|
break;
|
||||||
case 'third':
|
case 'third':
|
||||||
console.log('【跳转第三方客服】');
|
console.log('【跳转第三方客服】');
|
||||||
this.openThirdService(config);
|
// 修改:强制跳转到AI客服页面
|
||||||
|
console.log('【强制跳转 AI 客服】目标路径: /pages_tool/ai-chat/index');
|
||||||
|
this.openDifyService();
|
||||||
break;
|
break;
|
||||||
case 'miniprogram':
|
case 'miniprogram':
|
||||||
console.log('【跳转第三方小程序客服】');
|
console.log('【跳转第三方小程序客服】');
|
||||||
this.openThirdService(config);
|
// 修改:强制跳转到AI客服页面
|
||||||
|
console.log('【强制跳转 AI 客服】目标路径: /pages_tool/ai-chat/index');
|
||||||
|
this.openDifyService();
|
||||||
break;
|
break;
|
||||||
case 'niushop':
|
case 'niushop':
|
||||||
console.log('【跳转牛商客服】');
|
console.log('【跳转牛商客服】');
|
||||||
this.openNiushopService(niushop);
|
// 修改:强制跳转到AI客服页面
|
||||||
|
console.log('【强制跳转 AI 客服】目标路径: /pages_tool/ai-chat/index');
|
||||||
|
this.openDifyService();
|
||||||
break;
|
break;
|
||||||
case 'weapp':
|
case 'weapp':
|
||||||
console.log('【跳转微信官方客服】');
|
console.log('【跳转微信官方客服】');
|
||||||
this.openWeappService(config, options);
|
// 修改:强制跳转到AI客服页面
|
||||||
|
console.log('【强制跳转 AI 客服】目标路径: /pages_tool/ai-chat/index');
|
||||||
|
this.openDifyService();
|
||||||
break;
|
break;
|
||||||
case 'aliapp':
|
case 'aliapp':
|
||||||
console.log('【跳转支付宝客服】');
|
console.log('【跳转支付宝客服】');
|
||||||
this.openAliappService(config);
|
// 修改:强制跳转到AI客服页面
|
||||||
|
console.log('【强制跳转 AI 客服】目标路径: /pages_tool/ai-chat/index');
|
||||||
|
this.openDifyService();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.error('【未知客服类型】', config.type);
|
console.error('【未知客服类型】', config.type);
|
||||||
|
|||||||
@@ -104,7 +104,7 @@
|
|||||||
},
|
},
|
||||||
"router" : {
|
"router" : {
|
||||||
"mode" : "history",
|
"mode" : "history",
|
||||||
"base" : "/hwappx/2811/"
|
"base" : "/hwappx/common/"
|
||||||
},
|
},
|
||||||
"title" : "",
|
"title" : "",
|
||||||
"devServer" : {
|
"devServer" : {
|
||||||
|
|||||||
@@ -51,8 +51,12 @@
|
|||||||
import { mapGetters, mapMutations } from 'vuex'
|
import { mapGetters, mapMutations } from 'vuex'
|
||||||
import navigationHelper from '@/common/js/navigation';
|
import navigationHelper from '@/common/js/navigation';
|
||||||
import { EventSafety } from '@/common/js/event-safety';
|
import { EventSafety } from '@/common/js/event-safety';
|
||||||
|
import aiChatMessage from './ai-chat-message.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
aiChatMessage
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
initialMessages: [
|
initialMessages: [
|
||||||
@@ -122,12 +126,12 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async onLoad(options) {
|
async onLoad(options) {
|
||||||
// ✅ 新增:权限校验(关键!防止非 AI 类型进入)
|
// ✅ 修改:取消权限校验,允许所有客服类型访问此页面
|
||||||
const hasAccess = this.checkAccessPermission();
|
// const hasAccess = this.checkAccessPermission();
|
||||||
if (!hasAccess) {
|
// if (!hasAccess) {
|
||||||
// 如果校验失败,不继续初始化
|
// // 如果校验失败,不继续初始化
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
this. $langConfig.title('AI智能客服');
|
this. $langConfig.title('AI智能客服');
|
||||||
this.initChat();
|
this.initChat();
|
||||||
@@ -600,10 +604,6 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 底部tabBar占位样式 */
|
/* 底部tabBar占位样式 */
|
||||||
|
|||||||
Reference in New Issue
Block a user