From ea5391f709bbca010b5df3c093738acd7b0b5b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Thu, 4 May 2023 11:56:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7=E5=90=8D?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/PC/public/version.json | 2 +- fe/PC/src/store/modules/user.js | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/fe/PC/public/version.json b/fe/PC/public/version.json index 8d32f918e..d9ed07838 100644 --- a/fe/PC/public/version.json +++ b/fe/PC/public/version.json @@ -1,3 +1,3 @@ { - "version": "1.0.6" + "version": "1.0.8" } \ No newline at end of file diff --git a/fe/PC/src/store/modules/user.js b/fe/PC/src/store/modules/user.js index 21ba03d4c..fdad38c55 100644 --- a/fe/PC/src/store/modules/user.js +++ b/fe/PC/src/store/modules/user.js @@ -74,9 +74,13 @@ const actions = { accessToken, tokenType } = response - commit('SET_TOKEN', accessToken) - setToken(tokenType + ' ' + accessToken) - resolve() + if (accessToken == null) { + reject() + } else { + commit('SET_TOKEN', accessToken) + setToken(tokenType + ' ' + accessToken) + resolve() + } }).catch(error => { reject(error) })