From 2bd663b4488808814ea07685f527fc2eb51e5bfe Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期五, 28 八月 2026 17:36:13 +0800
Subject: [PATCH] fix: 菜单/布局统一——企业解释重复 components 键导致 app-header 未注册;规则管理/用户管理改为统一上下布局(顶部系统栏+登出),移除菜单内失效的退出登录项

---
 traffic-audit-web/src/components/AiChatDialog.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/traffic-audit-web/src/components/AiChatDialog.vue b/traffic-audit-web/src/components/AiChatDialog.vue
index efee353..82afaad 100644
--- a/traffic-audit-web/src/components/AiChatDialog.vue
+++ b/traffic-audit-web/src/components/AiChatDialog.vue
@@ -113,7 +113,7 @@
       api.post('/llm/chat', {
         messages: [{ role: 'user', content: '璇风敤缁撴瀯鍖� Markdown锛堝皬鑺傛爣棰樸�佸姞绮椼�佸垪琛級鍒嗘瀽璇ヤ紒涓氱殑瑙i噴鏄惁鍚堢悊锛屽厛缁欑粨璁猴紝鍐嶅垪鏁版嵁渚濇嵁锛屾渶鍚庣粰鍑哄缃缓璁��' }],
         context: this.context
-      })
+      }, { timeout: 120000 })
         .then(res => { this.pushAssistant(res.data || 'AI 鏈繑鍥炲唴瀹癸紝璇烽噸璇�') })
         .catch(() => { this.pushAssistant('AI 鍒嗘瀽澶辫触锛岃绋嶅悗閲嶈瘯鎴栦汉宸ュ垽鏂�') })
         .finally(() => { this.$nextTick(() => this.scrollToBottom()) })
@@ -147,7 +147,7 @@
       this.userScrolledUp = false
       this.chatLoading = true
       this.$nextTick(() => this.scrollToBottom())
-      api.post('/llm/chat', { messages: this.chatMessages, context: this.context })
+      api.post('/llm/chat', { messages: this.chatMessages, context: this.context }, { timeout: 120000 })
         .then(res => { this.pushAssistant(res.data || 'AI 鏈繑鍥炲唴瀹癸紝璇烽噸璇�') })
         .catch(() => { this.pushAssistant('AI 鍒嗘瀽澶辫触锛岃绋嶅悗閲嶈瘯鎴栦汉宸ュ垽鏂�') })
         .finally(() => { this.$nextTick(() => this.scrollToBottom()) })

--
Gitblit v1.9.1