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