bug修复

This commit is contained in:
FengHui
2026-04-13 12:29:47 +08:00
parent 3d8e13c665
commit 321e686d68
5 changed files with 109 additions and 25 deletions

View File

@@ -74,10 +74,14 @@ const useUserStore = defineStore("user", () => {
uni.removeStorageSync('token')
uni.removeStorageSync('Padmin-Token')
// 如果需要显示登录弹窗,则通过事件通知页面显示微信登录弹窗
if (showLoginModal) {
// 通过 uni.$emit 发送全局事件,通知页面显示登录弹窗
uni.$emit('showLoginModal');
}
// if (showLoginModal) {
// // 通过 uni.$emit 发送全局事件,通知页面显示登录弹窗
// uni.$emit('showLoginModal');
// }
// 跳转到首页
uni.reLaunch({
url: '/pages/index/index'
});
}
const getUserInfo = () => {