feat:新增登录页配置
Showing
7 changed files
with
6 additions
and
13 deletions
... | @@ -3,7 +3,6 @@ | ... | @@ -3,7 +3,6 @@ |
3 | "THEME": "jg", | 3 | "THEME": "jg", |
4 | "CODE": "BDCJGPT", | 4 | "CODE": "BDCJGPT", |
5 | "AREARMAP": "610702", | 5 | "AREARMAP": "610702", |
6 | "AREARNAME": "汉中市", | ||
7 | "SERVERAPI": "/bdcsjsb", | 6 | "SERVERAPI": "/bdcsjsb", |
8 | "calcHeight": 200, | 7 | "calcHeight": 200, |
9 | "echartTextColor": "#FFFFFF", | 8 | "echartTextColor": "#FFFFFF", | ... | ... |
... | @@ -3,7 +3,6 @@ | ... | @@ -3,7 +3,6 @@ |
3 | "THEME": "sb", | 3 | "THEME": "sb", |
4 | "CODE": "BDCSBPT", | 4 | "CODE": "BDCSBPT", |
5 | "AREARMAP": "610702", | 5 | "AREARMAP": "610702", |
6 | "AREARNAME": "汉中市", | ||
7 | "SERVERAPI": "/bdcsjsb", | 6 | "SERVERAPI": "/bdcsjsb", |
8 | "calcHeight": 160, | 7 | "calcHeight": 160, |
9 | "echartTextColor": "#4A4A4A", | 8 | "echartTextColor": "#4A4A4A", | ... | ... |
... | @@ -3,7 +3,6 @@ | ... | @@ -3,7 +3,6 @@ |
3 | "THEME": "jg", | 3 | "THEME": "jg", |
4 | "CODE": "BDCJGPT", | 4 | "CODE": "BDCJGPT", |
5 | "AREARMAP": "632701", | 5 | "AREARMAP": "632701", |
6 | "AREARNAME": "玉树", | ||
7 | "SERVERAPI": "/bdcsjsb", | 6 | "SERVERAPI": "/bdcsjsb", |
8 | "calcHeight": 200, | 7 | "calcHeight": 200, |
9 | "echartTextColor": "#FFFFFF", | 8 | "echartTextColor": "#FFFFFF", | ... | ... |
... | @@ -3,7 +3,6 @@ | ... | @@ -3,7 +3,6 @@ |
3 | "THEME": "sb", | 3 | "THEME": "sb", |
4 | "CODE": "BDCSBPT", | 4 | "CODE": "BDCSBPT", |
5 | "AREARMAP": "632701", | 5 | "AREARMAP": "632701", |
6 | "AREARNAME": "玉树", | ||
7 | "SERVERAPI": "/bdcsjsb", | 6 | "SERVERAPI": "/bdcsjsb", |
8 | "calcHeight": 160, | 7 | "calcHeight": 160, |
9 | "echartTextColor": "#4A4A4A", | 8 | "echartTextColor": "#4A4A4A", | ... | ... |
1 | /* | 1 | /* |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-03-27 17:26:19 | 4 | * @LastEditTime: 2023-04-06 10:58:22 |
5 | */ | 5 | */ |
6 | import Vue from 'vue' | 6 | import Vue from 'vue' |
7 | import router from "./router"; | 7 | import router from "./router"; |
... | @@ -57,11 +57,7 @@ router.beforeEach(async (to, from, next) => { | ... | @@ -57,11 +57,7 @@ router.beforeEach(async (to, from, next) => { |
57 | 57 | ||
58 | } | 58 | } |
59 | } else { | 59 | } else { |
60 | if (code == 'BDCSBPT') { | 60 | next(`/${LOGIN}`); |
61 | next('/sb'); | ||
62 | } else { | ||
63 | next('/jg'); | ||
64 | } | ||
65 | } | 61 | } |
66 | } | 62 | } |
67 | NProgress.done(); | 63 | NProgress.done(); | ... | ... |
... | @@ -32,7 +32,7 @@ export const constantRoutes = [ | ... | @@ -32,7 +32,7 @@ export const constantRoutes = [ |
32 | { | 32 | { |
33 | path: '/', | 33 | path: '/', |
34 | redirect: to => { | 34 | redirect: to => { |
35 | return { path: `/${Vue.prototype.BASE_API.THEME}` } | 35 | return { path: `/${Vue.prototype.BASE_API.LOGIN}` } |
36 | }, | 36 | }, |
37 | }, | 37 | }, |
38 | // 监管首页 | 38 | // 监管首页 | ... | ... |
-
Please register or sign in to post a comment