a383b8db by renchao@pashanhoo.com

style:新增登录页配置

1 parent 0aa7e2cc
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 "TITLE": "汉中市监管系统", 2 "TITLE": "汉中市监管系统",
3 "THEME": "jg", 3 "THEME": "jg",
4 "LOGIN": "jg",
4 "CODE": "BDCJGPT", 5 "CODE": "BDCJGPT",
5 "AREARMAP": "610702", 6 "AREARMAP": "610702",
6 "SERVERAPI": "/bdcsjsb", 7 "SERVERAPI": "/bdcsjsb",
......
1 { 1 {
2 "TITLE": "汉中市数据上报系统", 2 "TITLE": "汉中市数据上报系统",
3 "THEME": "sb", 3 "THEME": "sb",
4 "LOGIN": "sb",
4 "CODE": "BDCSBPT", 5 "CODE": "BDCSBPT",
5 "AREARMAP": "610702", 6 "AREARMAP": "610702",
6 "SERVERAPI": "/bdcsjsb", 7 "SERVERAPI": "/bdcsjsb",
......
1 { 1 {
2 "TITLE": "玉树州监管系统", 2 "TITLE": "玉树州监管系统",
3 "THEME": "jg", 3 "THEME": "jg",
4 "LOGIN": "jg",
4 "CODE": "BDCJGPT", 5 "CODE": "BDCJGPT",
5 "AREARMAP": "632701", 6 "AREARMAP": "632701",
6 "SERVERAPI": "/bdcsjsb", 7 "SERVERAPI": "/bdcsjsb",
......
1 { 1 {
2 "TITLE": "玉树州数据上报系统", 2 "TITLE": "玉树州数据上报系统",
3 "THEME": "sb", 3 "THEME": "sb",
4 "LOGIN": "sb",
4 "CODE": "BDCSBPT", 5 "CODE": "BDCSBPT",
5 "AREARMAP": "632701", 6 "AREARMAP": "632701",
6 "SERVERAPI": "/bdcsjsb", 7 "SERVERAPI": "/bdcsjsb",
......
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();
......