Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
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
zhaochengxiang
szse
Commits
d34b1819
Commit
d34b1819
authored
Mar 24, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
session过期
parent
2ba5c1b4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
index.less
src/index.less
+0
-4
axios.js
src/util/axios.js
+5
-1
No files found.
src/index.less
View file @
d34b1819
...
@@ -13,10 +13,6 @@ body {
...
@@ -13,10 +13,6 @@ body {
background-color: #fff;
background-color: #fff;
}
}
#root {
height: 100%;
}
code {
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
monospace;
...
...
src/util/axios.js
View file @
d34b1819
...
@@ -89,12 +89,16 @@ export const SetSource = function (source) {
...
@@ -89,12 +89,16 @@ export const SetSource = function (source) {
const
callback
=
resp
=>
{
const
callback
=
resp
=>
{
if
(
resp
.
status
===
401
)
{
if
(
resp
.
status
===
401
)
{
message
.
warning
(
"session过期,请重新登录!"
);
message
.
warning
(
"session过期,请重新登录!"
);
window
.
setTimeout
(
args
=>
Open
(
`
${
ContextPath
}
/login`
,
{
target
:
'_self'
}),
2000
);
if
(
window
.
parent
)
{
window
.
parent
.
postMessage
(
'session invalid'
);
}
return
null
;
return
null
;
}
}
else
if
(
resp
.
status
!==
200
)
{
else
if
(
resp
.
status
!==
200
)
{
throw
resp
.
data
throw
resp
.
data
}
}
return
resp
.
data
||
resp
;
return
resp
.
data
||
resp
;
}
}
...
...
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