From 3621d4448a2936fa66fe5bf47d2c29516d79452c Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 1 Apr 2025 17:43:28 +0800 Subject: [PATCH] =?UTF-8?q?token=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.js | 3 ++- src/views/login/index.vue | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index f478405..e364466 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -144,10 +144,11 @@ const actions = { }, loginByToken({ commit }, Token) { return new Promise((resolve, reject) => { - TJUserLoginInfo({ Token }).then(async response => { + TJUserLoginInfo(Token).then(async response => { if (response.IsSuccess) { zzSessionStorage.removeItem('lastWorkbench') const data = response.Result + commit('SET_TOKEN', response.OtherInfo) setToken(response.OtherInfo) commit('SET_ROLES', data) resolve(data) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 770e4b6..7dc2a27 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -294,6 +294,7 @@ export default { this.loginLoading = false this.toggleRoleVisible = true }).catch(err => { + this.loginLoading = false console.log(err) }) },