From 703455ff2bcb62b762e818c20986f178fe79bc24 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 31 十月 2024 17:26:58 +0800 Subject: [PATCH] 整合代码&&完善业务类型查询模板bug&&添加菜单动态选择icon图标&&添加font图标库 --- 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