解决登录显示、首页显示bug

This commit is contained in:
2026-05-19 11:06:46 +08:00
parent 2f7e097e6c
commit 00a859c551
181 changed files with 55329 additions and 998 deletions

View File

@@ -170,9 +170,8 @@ const navigateTo = (url: string): void => {
}
const handleLogout = (): void => {
logout()
uni.removeStorageSync('userInfo')
uni.removeStorageSync('user_id')
uni.removeStorageSync('access_token')
uni.showToast({
title: '已退出登录',
@@ -180,8 +179,8 @@ const handleLogout = (): void => {
})
setTimeout(() => {
uni.reLaunch({
url: '/pages/user/login'
uni.switchTab({
url: '/pages/main/profile'
})
}, 1000)
}