From 03c38da7555b69cb598e534c97fa25bd5385701c Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期二, 29 十月 2024 17:55:50 +0800 Subject: [PATCH] 表单定义权限控制和属性权限&&成员管理添加密级&&首页修改密码&&登录判断过期停用修改密码后跳转首页 --- 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