退出登录

This commit is contained in:
shidongli 2023-11-07 16:20:36 +08:00
parent 52ebf12052
commit b701d44c8f

View File

@ -274,7 +274,13 @@
type: 'success',
duration: '1000'
})
setTimeout(e => {
createMobileToken().then(res => {
uni.setStorageSync("token", res.data.token)
})
if (that.timer) {
clearTimeout(that.timer)
}
that.timer=setTimeout(e => {
uni.switchTab({
url: '/pages/homepage/homepage'
})