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