修复打包后静态页面加载异常

This commit is contained in:
panlinlin
2021-04-19 11:04:11 +08:00
parent 5b18172896
commit 41ca4e938d
7 changed files with 26 additions and 23 deletions

View File

@@ -21,6 +21,7 @@ export default {
created() {
if(!this.$cookies.get("session")){
//如果没有登录状态则跳转到登录页
console.log("33333333")
this.$router.push('/login');
}
},
@@ -42,6 +43,7 @@ export default {
//cookie操作方法在源码里有或者参考网上的即可
if(!this.$cookies.get("session")){
//如果没有登录状态则跳转到登录页
console.log("222222222")
this.$router.push('/login');
}
},