From 3be9cfcb6b59366b936821966d20a998a6895f9f Mon Sep 17 00:00:00 2001 From: 黎星凯 <13949086503@163.com> Date: 星期二, 30 四月 2024 14:38:13 +0800 Subject: [PATCH] bug41、42修改 --- admin-web/src/store/modules/user.js | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/admin-web/src/store/modules/user.js b/admin-web/src/store/modules/user.js index 5020517..ca252b3 100644 --- a/admin-web/src/store/modules/user.js +++ b/admin-web/src/store/modules/user.js @@ -1,4 +1,4 @@ -import {getCurInfo, getInfo, login, logout} from '@/api/user'; +import {changeSLoginInfo, getCurInfo, getInfo, login, logout} from '@/api/user'; import { getToken, getUser, @@ -103,6 +103,15 @@ getCurInfo().then(res => { commit('SET_USER_INFO', res) resolve(); + + changeSLoginInfo().then(res => { + commit('SET_USER_INFO', res) + resolve(); + }).catch((error) => { + reject(error); + }) + + }).catch((error) => { reject(error); }) -- Gitblit v1.9.1