Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
cf6de52e
Commit
cf6de52e
authored
Oct 24, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b7b238e1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
77 additions
and
72 deletions
+77
-72
request.js
src/utils/request.js
+77
-72
No files found.
src/utils/request.js
View file @
cf6de52e
import
axios
from
"axios"
;
import
{
removeAuth
}
from
"../utils/auth"
;
import
{
removeAuth
}
from
"../utils/auth"
;
import
qs
from
"qs"
;
import
{
Dialog
,
Notify
}
from
'quasar'
import
{
Dialog
,
Notify
}
from
'quasar'
var
showLoginMessageBox
=
false
;
axios
.
defaults
.
headers
[
"Content-Type"
]
=
"application/json;charset=UTF-8"
;
//application/x-www-form-urlencoded;charset=UTF-8
...
...
@@ -49,7 +54,7 @@ service.interceptors.response.use(
return
response
;
}
else
if
(
res
.
Code
!=
1
)
{
// TODO 确定后台的CODE码
if
(
res
.
Code
==
302
)
{
if
(
res
.
Code
==
10000
)
{
if
(
!
showLoginMessageBox
)
{
showLoginMessageBox
=
true
;
Dialog
.
create
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment