解决登录显示、首页显示bug
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user