diff --git a/common/js/ai-service.js b/common/js/ai-service.js index c99000c..14923fe 100644 --- a/common/js/ai-service.js +++ b/common/js/ai-service.js @@ -68,7 +68,7 @@ export default { } return result; } catch (error) { - console.error('[AI Service] Dify API请求失败,详细错误:', error); + console.error('[AI Service] AiChat API请求失败,详细错误:', error); console.error('[AI Service] 错误堆栈:', error.stack); // 打印更多信息帮助调试 console.error('[AI Service] store 状态:', { diff --git a/common/js/customer-service.js b/common/js/customer-service.js index 13a2ded..5edbbd1 100644 --- a/common/js/customer-service.js +++ b/common/js/customer-service.js @@ -119,9 +119,9 @@ export class CustomerService { } /** - * 跳转到 AI智能客服页面(Dify) + * 跳转到 AI智能客服页面(AiChat) */ - openDifyService() { + openAiChatService() { try { // 清除未读数(如果存在) if (typeof this.vm.setAiUnreadCount === 'function') { @@ -177,7 +177,7 @@ export class CustomerService { // 核心路由:根据 type 决定行为 switch (config.type) { case 'aikefu': - this.openDifyService(); + this.openAiChatService(); break; case 'wxwork': this.openWxworkService(false, config, options); @@ -364,7 +364,7 @@ export class CustomerService { openAliappService(config) { if (config.type === 'aikefu') { - this.openDifyService(); + this.openAiChatService(); } else if (config.type === 'third') { this.openThirdService(config); } else { diff --git a/pages_tool/ai-chat/ai-chat-message.vue b/pages_tool/ai-chat/ai-chat-message.vue index 16e5ec8..207633e 100644 --- a/pages_tool/ai-chat/ai-chat-message.vue +++ b/pages_tool/ai-chat/ai-chat-message.vue @@ -1,5 +1,5 @@