使用场景:退出登录的时候解绑之后清除所有缓存
uni.clearStorageSync();
javascript
uni.showModal({
title: "提示",
content: "确定要退出登录吗?",
success: (res) => {
if (res.confirm) {
uni.showToast({
title:res.Message,
icon:"none"
})
uni.clearStorageSync();
uni.reLaunch({
url: "/pages/wechatAuthorization/wechatAuthorization"
});
}
}
});