From 8f79f5aecf6d12661ee86affbe4e7b5c00ad0e36 Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Tue, 18 Nov 2025 20:01:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/components/chat/ChatMainList/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/index/components/chat/ChatMainList/index.vue b/src/pages/index/components/chat/ChatMainList/index.vue index 8439440..d401c11 100644 --- a/src/pages/index/components/chat/ChatMainList/index.vue +++ b/src/pages/index/components/chat/ChatMainList/index.vue @@ -346,7 +346,9 @@ onLoad(() => { // token存在,初始化数据 const initHandler = () => { console.log("initHandler"); - if (!appStore.hasToken) return; + const token = uni.getStorageSync("token"); + + if (!token) return; loadRecentConversation(); ///loadConversationMsgList(); initWebSocket();