From 9a34f1cf8528b51112f62af5b646db717f612e45 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期一, 01 七月 2024 18:12:06 +0800 Subject: [PATCH] 用户管理界面,下载导入模板,用户导入接口上传,增加corba.properties配置读取类。 --- Source/plt-web/plt-web-ui/src/store/modules/user.js | 5 ++++- 1 files changed, 4 insertions(+), 1 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 6f14ce8..fbbaba8 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 @@ -65,13 +65,16 @@ loginByUsername(userInfo.deptId, userInfo.roleId, userInfo.username, userInfo.password, 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); + commit('SET_TOKEN', data.obj.tokenVO.accessToken); commit('SET_REFRESH_TOKEN', data.obj.tokenVO.accessToken); commit('DEL_ALL_TAG'); commit('CLEAR_LOCK'); getUserInfo().then((res) => { - const data = res.data.data; + const data = res.data; commit('SET_USER_INFO', data.obj); }).catch(err => { console.log(err) -- Gitblit v1.9.3