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';