From 992f6fadd2534326c80cbe84437a84cc4a686f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E6=B0=91=E5=BA=B7?= Date: Thu, 15 May 2025 17:02:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E4=BF=A1=E4=BB=A3=E7=A0=81=E5=BA=93-A?= =?UTF-8?q?I=E5=A4=A7=E6=A8=A1=E5=9E=8B=E5=88=9B=E5=BB=BA=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D\=E4=BC=9A=E8=AF=9D=E5=88=97=E8=A1=A8\=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D=E8=AF=A6=E6=83=85=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= =?UTF-8?q?=E5=8F=8A=E5=89=8D=E7=AB=AF=E5=8A=9F=E8=83=BD=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AI/Home/components/ViewHistoryAside/ViewHistoryAside.vue | 2 +- src/views/Jyh/AI/Home/index.vue | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/views/Jyh/AI/Home/components/ViewHistoryAside/ViewHistoryAside.vue b/src/views/Jyh/AI/Home/components/ViewHistoryAside/ViewHistoryAside.vue index 831ea75..511096b 100644 --- a/src/views/Jyh/AI/Home/components/ViewHistoryAside/ViewHistoryAside.vue +++ b/src/views/Jyh/AI/Home/components/ViewHistoryAside/ViewHistoryAside.vue @@ -314,7 +314,7 @@ const getQuestionHistory = async () => { // Message.error(data.error||'接口异常!') } } else { - Message.warning('请先登录!') + Message.error('请先登录!') } }; diff --git a/src/views/Jyh/AI/Home/index.vue b/src/views/Jyh/AI/Home/index.vue index 43a4280..cb83499 100644 --- a/src/views/Jyh/AI/Home/index.vue +++ b/src/views/Jyh/AI/Home/index.vue @@ -245,7 +245,6 @@ const VITE_AI_API_HOST = (import.meta as any).env.VITE_AI_API_HOST; // AI对话接口对接 const getAIAnswer = async (content) => { debugger - if(!username) return Message.error('请先登录!') if(CONV_ID.value) { messages.value.push({ role: 'ai-model', @@ -299,7 +298,7 @@ const getAIAnswer = async (content) => { // } // }, 1000); } else { - Message.error('请先创建会话!'); + // Message.error('请先创建会话!'); } }; @@ -316,7 +315,6 @@ const createConversation = async () => { const response = await axios.post(`${VITE_AI_API_HOST}/api/createConversation`, { userId: username, }); - debugger const createRes = response.data; if (createRes&&createRes.conversationId) {