From 5e5fdd91f3b92529ebeda7cf9c3ea7fe97e0c03b Mon Sep 17 00:00:00 2001 From: boxshadow Date: Sat, 12 May 2018 17:45:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=96=B0=E7=89=88=E7=99=BB=E5=BD=95=E6=8E=A5=E5=8F=A3=E5=90=8E?= =?UTF-8?q?,=20=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96=E6=9C=AA=E8=AF=BB?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=95=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/module/message/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/module/message/actions.js b/src/stores/module/message/actions.js index 4858fc5b..92f58a88 100644 --- a/src/stores/module/message/actions.js +++ b/src/stores/module/message/actions.js @@ -3,7 +3,7 @@ import lstore from "@/plugins/lstore/lstore.js"; import getMessageUnameTxt from "@/util/getMessageUnameTxt"; export default { GET_NEW_UNREAD_COUNT({ rootState, commit }) { - if (!rootState.CURRENTUSER || !rootState.CURRENTUSER.token) return; + if (!rootState.CURRENTUSER || !lstore.getData("H5_ACCESS_TOKEN")) return; http .get("/user/counts", { validateStatus: status => status === 200