路线锁定定时提示弹窗

This commit is contained in:
蔡玲
2024-09-20 11:24:16 +08:00
parent 30ecbcfd4f
commit 5bec011106
7 changed files with 87 additions and 8 deletions

View File

@@ -64,10 +64,19 @@
})
},
Quit () {
this.$store.dispatch('delUserInfo', '')
uni.redirectTo({
url: '/pages/login/login'
})
if (this.$store.getters.routeStatus) {
uni.showModal({
title: '提示',
showCancel: false,
content: '路线锁定未释放,请操作完成再退出!'
})
return
}
this.$store.dispatch('delUserInfo', '')
this.$globalData.stopTimer()
uni.redirectTo({
url: '/pages/login/login'
})
}
}
}