chore:配置修改
Showing
3 changed files
with
4 additions
and
2 deletions
| 1 | { | 1 | { |
| 2 | "TITLE": "汉中市数据上报系统", | 2 | "TITLE": "汉中市数据上报系统", |
| 3 | "THEME": "sb", | 3 | "THEME": "sb", |
| 4 | "CODE": "BDCJGPT", | 4 | "CODE": "BDCSBPT", |
| 5 | "SERVERAPI": "/bdcsjsb", | 5 | "SERVERAPI": "/bdcsjsb", |
| 6 | "calcHeight": 160, | 6 | "calcHeight": 160, |
| 7 | "MANAGEMENTAPI": "http://192.168.2.38:8090/management" | 7 | "MANAGEMENTAPI": "http://192.168.2.38:8090/management" | ... | ... |
| ... | @@ -20,7 +20,9 @@ router.beforeEach(async (to, from, next) => { | ... | @@ -20,7 +20,9 @@ router.beforeEach(async (to, from, next) => { |
| 20 | localStorage.removeItem("token"); | 20 | localStorage.removeItem("token"); |
| 21 | next(); | 21 | next(); |
| 22 | } else { | 22 | } else { |
| 23 | window.document.documentElement.setAttribute("data-theme", 'blue'); | 23 | setTimeout(() => { |
| 24 | window.document.documentElement.setAttribute("data-theme", 'blue'); | ||
| 25 | }, 20) | ||
| 24 | let code = Vue.prototype.BASE_API.CODE | 26 | let code = Vue.prototype.BASE_API.CODE |
| 25 | //判断token是否存在 | 27 | //判断token是否存在 |
| 26 | const hasToken = localStorage.getItem("token"); | 28 | const hasToken = localStorage.getItem("token"); | ... | ... |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment