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

登录过期跳转登录

parent ffd0c18f
...@@ -37,10 +37,6 @@ const constantRoutes = [{ ...@@ -37,10 +37,6 @@ const constantRoutes = [{
path: '/homepage', path: '/homepage',
name: '模块页面', name: '模块页面',
component: () => import('../view/homepage.vue') component: () => import('../view/homepage.vue')
}, {
path: '/visualizing',
name: '大屏展示',
component: () => import('../view/visualizing.vue')
}, { }, {
path: '/chatRoom', path: '/chatRoom',
name: '学习训练平台', name: '学习训练平台',
......
...@@ -15,7 +15,7 @@ const actions = { ...@@ -15,7 +15,7 @@ const actions = {
}) })
.catch(err => { .catch(err => {
console.log(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); reject(err);
} else { } else {
let homeRoute = generateHomeRoute([]); let homeRoute = generateHomeRoute([]);
......
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
// this.activeIndex = key + ""; // this.activeIndex = key + "";
this.$store.commit("activeIndex", key + ""); this.$store.commit("activeIndex", key + "");
} else { } else {
window.open('#/visualizing'); // window.open('#/visualizing');
} }
}, },
handleCommand(command) { handleCommand(command) {
...@@ -219,7 +219,7 @@ export default { ...@@ -219,7 +219,7 @@ export default {
// this.activeIndex = key + ""; // this.activeIndex = key + "";
this.$store.commit("activeIndex", index + ""); this.$store.commit("activeIndex", index + "");
} else { } else {
window.open('#/visualizing'); // window.open('#/visualizing');
} }
} }
}, },
......
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
} }
}, },
activated() { 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({ this.$message({
showClose: true, showClose: true,
message: this.$route.params.message, 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