退出登录
This commit is contained in:
parent
52ebf12052
commit
b701d44c8f
@ -266,7 +266,7 @@
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确认要退出此账号吗',
|
||||
success: function(res) {
|
||||
succ ess: function(res) {
|
||||
if (res.confirm) {
|
||||
uni.clearStorageSync();
|
||||
that.$refs.uToast.show({
|
||||
@ -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'
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user