chore:智能客服正常运行
This commit is contained in:
@@ -51,8 +51,12 @@
|
||||
import { mapGetters, mapMutations } from 'vuex'
|
||||
import navigationHelper from '@/common/js/navigation';
|
||||
import { EventSafety } from '@/common/js/event-safety';
|
||||
import aiChatMessage from './ai-chat-message.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
aiChatMessage
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
initialMessages: [
|
||||
@@ -100,7 +104,7 @@ export default {
|
||||
},
|
||||
/// ---- others ----
|
||||
containerHeight() {
|
||||
return `calc(100vh - $ {this.navBarHeight + this.statusBarHeight}px)`
|
||||
return `calc(100vh - ${this.navBarHeight + this.statusBarHeight}px)`
|
||||
},
|
||||
wrapperPageStyle() {
|
||||
// #ifdef H5
|
||||
@@ -122,12 +126,12 @@ export default {
|
||||
},
|
||||
|
||||
async onLoad(options) {
|
||||
// ✅ 新增:权限校验(关键!防止非 AI 类型进入)
|
||||
const hasAccess = this.checkAccessPermission();
|
||||
if (!hasAccess) {
|
||||
// 如果校验失败,不继续初始化
|
||||
return;
|
||||
}
|
||||
// ✅ 修改:取消权限校验,允许所有客服类型访问此页面
|
||||
// const hasAccess = this.checkAccessPermission();
|
||||
// if (!hasAccess) {
|
||||
// // 如果校验失败,不继续初始化
|
||||
// return;
|
||||
// }
|
||||
|
||||
this. $langConfig.title('AI智能客服');
|
||||
this.initChat();
|
||||
@@ -600,10 +604,6 @@ export default {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
/* 底部tabBar占位样式 */
|
||||
|
||||
Reference in New Issue
Block a user