Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0aa7e2cc
authored
2023-04-06 11:02:50 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:新增登录页配置
1 parent
7584e28f
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
13 deletions
public/610702jg.json
public/610702sb.json
public/632701jg.json
public/632701sb.json
public/config.json
src/permission.js
src/router/index.js
public/610702jg.json
View file @
0aa7e2c
...
...
@@ -3,7 +3,6 @@
"THEME"
:
"jg"
,
"CODE"
:
"BDCJGPT"
,
"AREARMAP"
:
"610702"
,
"AREARNAME"
:
"汉中市"
,
"SERVERAPI"
:
"/bdcsjsb"
,
"calcHeight"
:
200
,
"echartTextColor"
:
"#FFFFFF"
,
...
...
public/610702sb.json
View file @
0aa7e2c
...
...
@@ -3,7 +3,6 @@
"THEME"
:
"sb"
,
"CODE"
:
"BDCSBPT"
,
"AREARMAP"
:
"610702"
,
"AREARNAME"
:
"汉中市"
,
"SERVERAPI"
:
"/bdcsjsb"
,
"calcHeight"
:
160
,
"echartTextColor"
:
"#4A4A4A"
,
...
...
public/632701jg.json
View file @
0aa7e2c
...
...
@@ -3,7 +3,6 @@
"THEME"
:
"jg"
,
"CODE"
:
"BDCJGPT"
,
"AREARMAP"
:
"632701"
,
"AREARNAME"
:
"玉树"
,
"SERVERAPI"
:
"/bdcsjsb"
,
"calcHeight"
:
200
,
"echartTextColor"
:
"#FFFFFF"
,
...
...
public/632701sb.json
View file @
0aa7e2c
...
...
@@ -3,7 +3,6 @@
"THEME"
:
"sb"
,
"CODE"
:
"BDCSBPT"
,
"AREARMAP"
:
"632701"
,
"AREARNAME"
:
"玉树"
,
"SERVERAPI"
:
"/bdcsjsb"
,
"calcHeight"
:
160
,
"echartTextColor"
:
"#4A4A4A"
,
...
...
public/config.json
View file @
0aa7e2c
{
"TITLE"
:
"汉中市数据上报系统"
,
"THEME"
:
"jg"
,
"CODE"
:
"BDCJGPT"
,
"THEME"
:
"sb"
,
"LOGIN"
:
"sb"
,
"CODE"
:
"BDCSBPT"
,
"AREARMAP"
:
"610702"
,
"SERVERAPI"
:
"/bdcsjsb"
,
"calcHeight"
:
160
,
...
...
src/permission.js
View file @
0aa7e2c
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-0
3-27 17:26:19
* @LastEditTime: 2023-0
4-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
();
...
...
src/router/index.js
View file @
0aa7e2c
...
...
@@ -32,7 +32,7 @@ export const constantRoutes = [
{
path
:
'/'
,
redirect
:
to
=>
{
return
{
path
:
`/
${
Vue
.
prototype
.
BASE_API
.
THEME
}
`
}
return
{
path
:
`/
${
Vue
.
prototype
.
BASE_API
.
LOGIN
}
`
}
},
},
// 监管首页
...
...
Please
register
or
sign in
to post a comment