From bad591c39a9ccdcd07fae37a3b398939f20a5696 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期三, 30 十月 2024 09:58:44 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/plt-web/plt-web-ui/src/store/modules/user.js | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/store/modules/user.js b/Source/plt-web/plt-web-ui/src/store/modules/user.js index 99a59e2..d4a78eb 100644 --- a/Source/plt-web/plt-web-ui/src/store/modules/user.js +++ b/Source/plt-web/plt-web-ui/src/store/modules/user.js @@ -66,10 +66,7 @@ let passwordDes = func.encryptData(userInfo.password,'daliantan0v0vcip') loginByUsername(userInfo.deptId, userInfo.roleId, userInfo.username,passwordDes, userInfo.type, userInfo.key,).then(res => { const data = res.data; - if (data.code === 200) { - // commit('SET_TOKEN', data.obj.sessionInfo.token); - // commit('SET_REFRESH_TOKEN', data.obj.sessionInfo.token); - + if (data.obj.failCode === 'loginSuccess') { commit('SET_TOKEN', data.obj.tokenVO.accessToken); commit('SET_REFRESH_TOKEN', data.obj.tokenVO.accessToken); commit('DEL_ALL_TAG'); @@ -81,15 +78,10 @@ }).catch(err => { console.log(err) }) - - } else { - Message({ - message: data.msg, - type: 'error' - }) } resolve(data); }).catch(error => { + // console.log(error) reject(error); }) }) -- Gitblit v1.9.3