From c75448e55864b93cadb4df3b06780d0baf9fa069 Mon Sep 17 00:00:00 2001 From: zoujing Date: Mon, 21 Jul 2025 19:42:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/LoginManager.js | 2 +- manifest.json | 3 ++- pages/chat/ChatMainList.vue | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/manager/LoginManager.js b/manager/LoginManager.js index 32d9f6c..2b66d4f 100644 --- a/manager/LoginManager.js +++ b/manager/LoginManager.js @@ -14,7 +14,7 @@ export async function loginAuth() { username: 'admin', password: 'YehdBPev' }); - if (response.success) { + if (response.access_token) { return response.data; } else { throw new Error(response.message || '登录失败'); diff --git a/manifest.json b/manifest.json index 3eff0c7..6072690 100644 --- a/manifest.json +++ b/manifest.json @@ -59,7 +59,8 @@ "setting" : { "urlCheck" : false }, - "usingComponents" : true + "usingComponents" : true, + "permission" : {} }, "mp-alipay" : { "usingComponents" : true diff --git a/pages/chat/ChatMainList.vue b/pages/chat/ChatMainList.vue index b59caf5..988e6a7 100644 --- a/pages/chat/ChatMainList.vue +++ b/pages/chat/ChatMainList.vue @@ -26,11 +26,15 @@ + + @@ -74,6 +78,7 @@ import ChatQuickAccess from './ChatQuickAccess.vue'; import ChatMoreTips from './ChatMoreTips.vue'; import ChatInputArea from './ChatInputArea.vue' + import CommandWrapper from '@/components/CommandWrapper/index.vue' import { MessageRole, ChatModel, MessageType } from '../../model/ChatModel';