feat: base userinfo退出按钮

This commit is contained in:
caoqianming 2025-10-16 09:36:00 +08:00
parent 84af330ea8
commit ff8833bda2
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@
this.userInfo = userInfo; this.userInfo = userInfo;
}, },
logout() { logout() {
// #ifdef APP-PLUS // #ifdef APP-PLUS || H5
try{uni.removeStorageSync("mySecret")}catch(e){}; try{uni.removeStorageSync("mySecret")}catch(e){};
// #endif // #endif
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
@ -66,7 +66,7 @@
// #endif // #endif
uni.removeStorageSync("access") uni.removeStorageSync("access")
uni.reLaunch({ uni.reLaunch({
url: "/pages/auth/login" url: "/pages/auth/login?autoLoading=no"
}) })
}, },