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
a383b8db
authored
2023-04-06 11:10:03 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:新增登录页配置
1 parent
0aa7e2cc
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
5 deletions
README.md
public/610702jg.json
public/610702sb.json
public/632701jg.json
public/632701sb.json
src/permission.js
README.md
View file @
a383b8d
<!--
*
@Description:
*
@Autor: renchao
*
@LastEditTime: 2023-04-06 1
0:52:36
*
@LastEditTime: 2023-04-06 1
1:03:47
-->
## Git 贡献提交规范
-
`feat`
增加新功能
...
...
@@ -22,7 +22,7 @@
{
"TITLE": "汉中市数据上报系统",
"THEME": "sb",
"LOGIN": "", { 登录配置 }
"LOGIN": "", { 登录
页
配置 }
"CODE": "BDCJGPT", {"BDCSBPT":上报: "BDCJGPT":监管}
"SERVERAPI": "/bdcsjsb",
"AREARMAP": "610702", // {"610702","632701"}
...
...
public/610702jg.json
View file @
a383b8d
{
"TITLE"
:
"汉中市监管系统"
,
"THEME"
:
"jg"
,
"LOGIN"
:
"jg"
,
"CODE"
:
"BDCJGPT"
,
"AREARMAP"
:
"610702"
,
"SERVERAPI"
:
"/bdcsjsb"
,
...
...
public/610702sb.json
View file @
a383b8d
{
"TITLE"
:
"汉中市数据上报系统"
,
"THEME"
:
"sb"
,
"LOGIN"
:
"sb"
,
"CODE"
:
"BDCSBPT"
,
"AREARMAP"
:
"610702"
,
"SERVERAPI"
:
"/bdcsjsb"
,
...
...
public/632701jg.json
View file @
a383b8d
{
"TITLE"
:
"玉树州监管系统"
,
"THEME"
:
"jg"
,
"LOGIN"
:
"jg"
,
"CODE"
:
"BDCJGPT"
,
"AREARMAP"
:
"632701"
,
"SERVERAPI"
:
"/bdcsjsb"
,
...
...
public/632701sb.json
View file @
a383b8d
{
"TITLE"
:
"玉树州数据上报系统"
,
"THEME"
:
"sb"
,
"LOGIN"
:
"sb"
,
"CODE"
:
"BDCSBPT"
,
"AREARMAP"
:
"632701"
,
"SERVERAPI"
:
"/bdcsjsb"
,
...
...
src/permission.js
View file @
a383b8d
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-04-06 1
0:58:22
* @LastEditTime: 2023-04-06 1
1: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
();
...
...
Please
register
or
sign in
to post a comment