修改bug

This commit is contained in:
田岩
2025-09-02 15:07:06 +08:00
parent 14f3b2e294
commit 05f56c3ce1
16 changed files with 179 additions and 102 deletions
+6 -3
View File
@@ -112,8 +112,11 @@ export const queryCurrentUser = (data) => request({
// userId: "USER001"
// userName: "ADMIN" / todo name
// userStatus: "01"
setUserInfo(res.body)
const userInfo = getUserInfo()
setUserInfo({
...userInfo,
...res.body
})
console.log('预加载头像');
const base_url = get_base_url()
@@ -121,7 +124,7 @@ export const queryCurrentUser = (data) => request({
// #ifdef APP-PLUS
// 更新用户信息中的头像路径
const updateUserAvatar = (imagePath) => {
const userInfo = getUserInfo()
setUserInfo({
...userInfo,
'imagePath': imagePath
+1
View File
@@ -40,6 +40,7 @@ export const goto_login_fun = (from = 'http') => {
const page = pages[pages.length - 1];
page_route = page.route
}
console.log('当前页路由', page_route);
if (page_route === 'pages/login/login') return;
common.hideLoading()
common.show('未登录', '现在去登录', false).then(() => {