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) })