提交 41e4d517 authored 作者: zwh's avatar zwh

Merge branch 'master' of git.yfzx.zjtys.com.cn:jan/scanmanage into zwh

...@@ -4,12 +4,12 @@ switch (env) { ...@@ -4,12 +4,12 @@ switch (env) {
case 'production': case 'production':
// baseUrl = "http://192.168.101.205:8086"; // 徐/ // baseUrl = "http://192.168.101.205:8086"; // 徐/
// baseUrl = "http://192.168.102.97:8086"; // 陈 // baseUrl = "http://192.168.102.97:8086"; // 陈
baseUrl = "http://192.168.102.114:9779"; // 李总 baseUrl = "http://123.60.41.254:9779"; // 李总
// baseUrl = "http://223.4.69.30:8081"; // 阿里云环境 // baseUrl = "http://223.4.69.30:8081"; // 阿里云环境
// baseUrl = "http://192.168.101.205:8086/activities" // baseUrl = "http://192.168.101.205:8086/activities"
break; break;
case 'alpha': case 'alpha':
baseUrl = "http://223.4.69.30:8081"; // 阿里云环境 baseUrl = "http://123.60.41.254:9779"; // 阿里云环境
break; break;
} }
export default baseUrl; export default baseUrl;
...@@ -63,6 +63,10 @@ export default { ...@@ -63,6 +63,10 @@ export default {
}, },
}, },
created() { created() {
if(!localStorage.getItem('token')){
this.$router.replace('/login')
return
}
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.time = this.getTime() this.time = this.getTime()
}, 1000); }, 1000);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论