a383b8db by renchao@pashanhoo.com

style:新增登录页配置

1 parent 0aa7e2cc
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-04-06 10:52:36
* @LastEditTime: 2023-04-06 11:03:47
-->
## Git 贡献提交规范
- `feat` 增加新功能
......@@ -22,7 +22,7 @@
{
"TITLE": "汉中市数据上报系统",
"THEME": "sb",
"LOGIN": "", { 登录配置 }
"LOGIN": "", { 登录配置 }
"CODE": "BDCJGPT", {"BDCSBPT":上报: "BDCJGPT":监管}
"SERVERAPI": "/bdcsjsb",
"AREARMAP": "610702", // {"610702","632701"}
......
{
"TITLE": "汉中市监管系统",
"THEME": "jg",
"LOGIN": "jg",
"CODE": "BDCJGPT",
"AREARMAP": "610702",
"SERVERAPI": "/bdcsjsb",
......
{
"TITLE": "汉中市数据上报系统",
"THEME": "sb",
"LOGIN": "sb",
"CODE": "BDCSBPT",
"AREARMAP": "610702",
"SERVERAPI": "/bdcsjsb",
......
{
"TITLE": "玉树州监管系统",
"THEME": "jg",
"LOGIN": "jg",
"CODE": "BDCJGPT",
"AREARMAP": "632701",
"SERVERAPI": "/bdcsjsb",
......
{
"TITLE": "玉树州数据上报系统",
"THEME": "sb",
"LOGIN": "sb",
"CODE": "BDCSBPT",
"AREARMAP": "632701",
"SERVERAPI": "/bdcsjsb",
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-04-06 10:58:22
* @LastEditTime: 2023-04-06 11:07:55
*/
import Vue from 'vue'
import router from "./router";
......@@ -20,7 +20,7 @@ router.beforeEach(async (to, from, next) => {
let hasAddDict = store.state.dict.addDict;
let hasUser = store.state.user.hasUser;
let hasAddRoute = store.state.permission.addRoutes;
if (to.path == "/sb" || to.path == "/jg") {
if (to.path == "/sb" || to.path == "/jg" || to.path == "/sb1") {
localStorage.removeItem("token");
next();
} else {
......@@ -57,7 +57,7 @@ router.beforeEach(async (to, from, next) => {
}
} else {
next(`/${LOGIN}`);
next(`/${Vue.prototype.BASE_API.LOGIN}`);
}
}
NProgress.done();
......