Commit 9556dac7 by 胡悦

Merge branch 'SAAS+V4.54.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.54.0

2 parents 02ded9b8 524a4348
......@@ -79,8 +79,11 @@ class Request {
return;
}
if (code == 20 || code == 21) {
console.log(params.method)
const pages = getCurrentPages(),
currentPage = pages[pages.length - 1]
uni.hideLoading();
uni.reLaunch({
if (currentPage.route != 'pages/common/login') uni.reLaunch({
url: "/pages/common/login",
});
} else {
......
......@@ -191,6 +191,7 @@ export default {
})
},
startTrack () {
if(this.trackInterval) clearInterval(this.trackInterval)
this.trackInterval = setInterval(() => {
this.leaveTrack()
}, 5000)
......@@ -225,6 +226,7 @@ export default {
this.$emit('closeTips')
try {
jumpUrl = await this.findBeiSenSSOToken()
this.jumpUrl = jumpUrl
} catch (error) {
console.log(error)
}
......@@ -350,6 +352,11 @@ export default {
},
beforeCreate () {
clearInterval(this.trackInterval)
this.trackInterval = null
},
beforeDestroy() {
clearInterval(this.trackInterval)
this.trackInterval = null
},
}
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!