Commit 2e46a698 authored by 以墨为白's avatar 以墨为白 🎧

登录过期跳转登录

parent ffd0c18f
......@@ -37,10 +37,6 @@ const constantRoutes = [{
path: '/homepage',
name: '模块页面',
component: () => import('../view/homepage.vue')
}, {
path: '/visualizing',
name: '大屏展示',
component: () => import('../view/visualizing.vue')
}, {
path: '/chatRoom',
name: '学习训练平台',
......
......@@ -15,7 +15,7 @@ const actions = {
})
.catch(err => {
console.log(err);
if (err instanceof Object && (err.code == 9003 || err.code == 9009)) {
if (err instanceof Object && (err.code == 9040 || err.code == 9041 || err.code == 9042)) {
reject(err);
} else {
let homeRoute = generateHomeRoute([]);
......
......@@ -136,7 +136,7 @@ export default {
// this.activeIndex = key + "";
this.$store.commit("activeIndex", key + "");
} else {
window.open('#/visualizing');
// window.open('#/visualizing');
}
},
handleCommand(command) {
......@@ -219,7 +219,7 @@ export default {
// this.activeIndex = key + "";
this.$store.commit("activeIndex", index + "");
} else {
window.open('#/visualizing');
// window.open('#/visualizing');
}
}
},
......
......@@ -115,7 +115,7 @@ export default {
}
},
activated() {
if (this.$route.params.code == 9003 || this.$route.params.code == 9009 || this.$route.params.code == 9008) {
if (this.$route.params.code == 9040 || this.$route.params.code == 9041 || this.$route.params.code == 9042) {
this.$message({
showClose: true,
message: this.$route.params.message,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment