|
|
@@ -128,9 +128,12 @@ async function handleLogout() {
|
|
|
content: '确定要退出登录吗?',
|
|
|
})
|
|
|
if (res.confirm) {
|
|
|
- await authStore.doLogout()
|
|
|
- uni.showToast({ title: '已退出登录', icon: 'none' })
|
|
|
- uni.reLaunch({ url: '/pages/login/login' })
|
|
|
+ uni.reLaunch({
|
|
|
+ url: '/pages/login/login',
|
|
|
+ complete: () => {
|
|
|
+ authStore.doLogout()
|
|
|
+ },
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
</script>
|