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
13efbe31
authored
2023-03-29 17:37:12 +0800
by
xiaomiao
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://yun.pashanhoo.com:9090/bdc/bdcjg-web
2 parents
6e703f0b
2f686431
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
public/config.json
src/utils/request.js
public/config.json
View file @
13efbe3
{
"TITLE"
:
"汉中市数据上报系统"
,
"THEME"
:
"sb"
,
"CODE"
:
"BDC
JG
PT"
,
"CODE"
:
"BDC
SB
PT"
,
"SERVERAPI"
:
"/bdcsjsb"
,
"calcHeight"
:
160
,
"echartTextColor"
:
"#4A4A4A"
,
...
...
src/utils/request.js
View file @
13efbe3
/*
* @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器
* @Autor: renchao
* @LastEditTime: 2023-03-2
1 15:03:37
* @LastEditTime: 2023-03-2
9 10:14:34
*/
import
Vue
from
'vue'
import
axios
from
"axios"
;
import
{
Message
}
from
"element-ui"
;
import
{
endLoadingSubCount
}
from
"./requestLoading"
;
...
...
@@ -68,12 +69,23 @@ function handleErrorData (status) {
window
.
tokenValid
=
false
;
Message
.
error
(
"由于长时间未操作,请重新登录!"
);
localStorage
.
removeItem
(
"token"
);
router
.
replace
({
path
:
"/jg"
,
query
:
{
redirect
:
router
.
history
.
current
.
fullPath
,
},
});
let
code
=
Vue
.
prototype
.
BASE_API
.
CODE
if
(
code
==
'BDCSBPT'
)
{
router
.
replace
({
path
:
"/sb"
,
query
:
{
redirect
:
router
.
history
.
current
.
fullPath
,
},
});
}
else
{
router
.
replace
({
path
:
"/jg"
,
query
:
{
redirect
:
router
.
history
.
current
.
fullPath
,
},
});
}
}
break
;
case
403
:
...
...
Please
register
or
sign in
to post a comment