退出登录后去除Padmin-Token
This commit is contained in:
@@ -72,7 +72,7 @@ const useUserStore = defineStore("user", () => {
|
|||||||
role.value = {}
|
role.value = {}
|
||||||
uni.removeStorageSync('userInfo')
|
uni.removeStorageSync('userInfo')
|
||||||
uni.removeStorageSync('token')
|
uni.removeStorageSync('token')
|
||||||
|
uni.removeStorageSync('Padmin-Token')
|
||||||
// 如果需要显示登录弹窗,则通过事件通知页面显示微信登录弹窗
|
// 如果需要显示登录弹窗,则通过事件通知页面显示微信登录弹窗
|
||||||
if (showLoginModal) {
|
if (showLoginModal) {
|
||||||
// 通过 uni.$emit 发送全局事件,通知页面显示登录弹窗
|
// 通过 uni.$emit 发送全局事件,通知页面显示登录弹窗
|
||||||
|
|||||||
Reference in New Issue
Block a user