From b3b20bc0294c0ecb2e5ceee9cd7eccbc120cb64c Mon Sep 17 00:00:00 2001 From: zhuoda Date: Thu, 21 Nov 2024 18:57:39 +0800 Subject: [PATCH] =?UTF-8?q?v3.10.1=20=E3=80=90=E7=B4=A7=E6=80=A5=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E3=80=91smart-app=20=E6=9F=A5=E8=AF=A2=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=B6=88=E6=81=AF=E7=9B=B8=E5=85=B3=E4=B8=9A=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- smart-app/src/store/modules/system/user.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/smart-app/src/store/modules/system/user.js b/smart-app/src/store/modules/system/user.js index c8c8f27c..ac9b546a 100644 --- a/smart-app/src/store/modules/system/user.js +++ b/smart-app/src/store/modules/system/user.js @@ -99,7 +99,9 @@ export const useUserStore = defineStore({ uni.setStorageSync(USER_TOKEN, data.token); // 获取用户未读消息 - this.queryUnreadMessageCount(); + if(this.token){ + this.queryUnreadMessageCount(); + } }, }, });