0aa7e2cc by renchao@pashanhoo.com

feat:新增登录页配置

1 parent 7584e28f
......@@ -3,7 +3,6 @@
"THEME": "jg",
"CODE": "BDCJGPT",
"AREARMAP": "610702",
"AREARNAME": "汉中市",
"SERVERAPI": "/bdcsjsb",
"calcHeight": 200,
"echartTextColor": "#FFFFFF",
......
......@@ -3,7 +3,6 @@
"THEME": "sb",
"CODE": "BDCSBPT",
"AREARMAP": "610702",
"AREARNAME": "汉中市",
"SERVERAPI": "/bdcsjsb",
"calcHeight": 160,
"echartTextColor": "#4A4A4A",
......
......@@ -3,7 +3,6 @@
"THEME": "jg",
"CODE": "BDCJGPT",
"AREARMAP": "632701",
"AREARNAME": "玉树",
"SERVERAPI": "/bdcsjsb",
"calcHeight": 200,
"echartTextColor": "#FFFFFF",
......
......@@ -3,7 +3,6 @@
"THEME": "sb",
"CODE": "BDCSBPT",
"AREARMAP": "632701",
"AREARNAME": "玉树",
"SERVERAPI": "/bdcsjsb",
"calcHeight": 160,
"echartTextColor": "#4A4A4A",
......
{
"TITLE": "汉中市数据上报系统",
"THEME": "jg",
"CODE": "BDCJGPT",
"THEME": "sb",
"LOGIN": "sb",
"CODE": "BDCSBPT",
"AREARMAP": "610702",
"SERVERAPI": "/bdcsjsb",
"calcHeight": 160,
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-27 17:26:19
* @LastEditTime: 2023-04-06 10:58:22
*/
import Vue from 'vue'
import router from "./router";
......@@ -57,11 +57,7 @@ router.beforeEach(async (to, from, next) => {
}
} else {
if (code == 'BDCSBPT') {
next('/sb');
} else {
next('/jg');
}
next(`/${LOGIN}`);
}
}
NProgress.done();
......
......@@ -32,7 +32,7 @@ export const constantRoutes = [
{
path: '/',
redirect: to => {
return { path: `/${Vue.prototype.BASE_API.THEME}` }
return { path: `/${Vue.prototype.BASE_API.LOGIN}` }
},
},
// 监管首页
......