From 7528d44d20d12b0b3044fb19e58c2f68c1cebf94 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 20 十一月 2024 15:40:25 +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