fix: 修改退出登录后的跳转逻辑,改为跳转到首页

This commit is contained in:
davy 2025-04-03 22:18:04 +08:00
parent a3d7f3002c
commit ae35d60f12

View File

@ -312,24 +312,19 @@
},
// 退
logout() {
if (!this.isLoggedIn) return
uni.showModal({
title: '提示',
content: '确定要退出登录吗?',
success: (res) => {
if (res.confirm) {
//
//
uni.removeStorageSync('token')
uni.removeStorageSync('userInfo')
this.isLoggedIn = false
this.userInfo = null
this.barInfo = null
this.myScanData = null
uni.removeStorageSync('barInfo')
//
//
uni.reLaunch({
url: '/pages/index/chooseLogin'
url: '/pages/index/index'
})
}
}