style:新增登录页配置
Showing
6 changed files
with
9 additions
and
5 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-04-06 10:52:36 | 4 | * @LastEditTime: 2023-04-06 11:03:47 |
5 | --> | 5 | --> |
6 | ## Git 贡献提交规范 | 6 | ## Git 贡献提交规范 |
7 | - `feat` 增加新功能 | 7 | - `feat` 增加新功能 |
... | @@ -22,7 +22,7 @@ | ... | @@ -22,7 +22,7 @@ |
22 | { | 22 | { |
23 | "TITLE": "汉中市数据上报系统", | 23 | "TITLE": "汉中市数据上报系统", |
24 | "THEME": "sb", | 24 | "THEME": "sb", |
25 | "LOGIN": "", { 登录配置 } | 25 | "LOGIN": "", { 登录页配置 } |
26 | "CODE": "BDCJGPT", {"BDCSBPT":上报: "BDCJGPT":监管} | 26 | "CODE": "BDCJGPT", {"BDCSBPT":上报: "BDCJGPT":监管} |
27 | "SERVERAPI": "/bdcsjsb", | 27 | "SERVERAPI": "/bdcsjsb", |
28 | "AREARMAP": "610702", // {"610702","632701"} | 28 | "AREARMAP": "610702", // {"610702","632701"} | ... | ... |
1 | /* | 1 | /* |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-04-06 10:58:22 | 4 | * @LastEditTime: 2023-04-06 11:07:55 |
5 | */ | 5 | */ |
6 | import Vue from 'vue' | 6 | import Vue from 'vue' |
7 | import router from "./router"; | 7 | import router from "./router"; |
... | @@ -20,7 +20,7 @@ router.beforeEach(async (to, from, next) => { | ... | @@ -20,7 +20,7 @@ router.beforeEach(async (to, from, next) => { |
20 | let hasAddDict = store.state.dict.addDict; | 20 | let hasAddDict = store.state.dict.addDict; |
21 | let hasUser = store.state.user.hasUser; | 21 | let hasUser = store.state.user.hasUser; |
22 | let hasAddRoute = store.state.permission.addRoutes; | 22 | let hasAddRoute = store.state.permission.addRoutes; |
23 | if (to.path == "/sb" || to.path == "/jg") { | 23 | if (to.path == "/sb" || to.path == "/jg" || to.path == "/sb1") { |
24 | localStorage.removeItem("token"); | 24 | localStorage.removeItem("token"); |
25 | next(); | 25 | next(); |
26 | } else { | 26 | } else { |
... | @@ -57,7 +57,7 @@ router.beforeEach(async (to, from, next) => { | ... | @@ -57,7 +57,7 @@ router.beforeEach(async (to, from, next) => { |
57 | 57 | ||
58 | } | 58 | } |
59 | } else { | 59 | } else { |
60 | next(`/${LOGIN}`); | 60 | next(`/${Vue.prototype.BASE_API.LOGIN}`); |
61 | } | 61 | } |
62 | } | 62 | } |
63 | NProgress.done(); | 63 | NProgress.done(); | ... | ... |
-
Please register or sign in to post a comment