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();