chore(build): 调整ai-chat-message组件的位置,减少对主包尺寸的影响
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"ns-loading": "../ns-loading/ns-loading"
|
||||
}
|
||||
}
|
||||
@@ -109,6 +109,7 @@ export default {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
|
||||
/**
|
||||
* 初始化多语言配置
|
||||
*/
|
||||
@@ -130,12 +131,14 @@ export default {
|
||||
this.currentLangIndex = 0;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 电话联系客服
|
||||
*/
|
||||
call() {
|
||||
this.customerService.makePhoneCall(this.tel);
|
||||
},
|
||||
|
||||
/**
|
||||
* 切换中英文语言,并刷新当前页面(保留所有参数)
|
||||
*/
|
||||
@@ -153,12 +156,12 @@ export default {
|
||||
openAIChat() {
|
||||
this.$util.redirectTo(this.$util.AI_CHAT_PAGE_URL);
|
||||
},
|
||||
|
||||
/**
|
||||
* 打开客服选择对话框
|
||||
*/
|
||||
openCustomerSelectPopup() {
|
||||
if (this.customerService) {
|
||||
this.customerService.openCustomerSelectPopupDialog();
|
||||
} else {
|
||||
uni.showToast({ title: '客服初始化中,请稍后重试', icon: 'none' });
|
||||
}
|
||||
this.customerService.openCustomerSelectPopupDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -52,7 +52,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: [
|
||||
@@ -85,8 +90,7 @@ export default {
|
||||
// 事件处理器引用(用于清理)
|
||||
safeEventHandlers: new Map()
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
computed: {
|
||||
...mapGetters([
|
||||
'globalAIKefuConfig'
|
||||
@@ -142,9 +146,6 @@ export default {
|
||||
this.cleanup()
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
methods: {
|
||||
// ========== 安全事件处理 ==========
|
||||
setupSafeEventListeners() {
|
||||
|
||||
Reference in New Issue
Block a user