feat: base userinfo退出按钮
This commit is contained in:
parent
84af330ea8
commit
ff8833bda2
|
@ -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"
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue