Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
fcf606ac
Commit
fcf606ac
authored
Nov 18, 2021
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级jsencrypt到最新版本3.2.1
parent
084907ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
ruoyi-ui/package.json
ruoyi-ui/package.json
+1
-1
ruoyi-ui/src/utils/request.js
ruoyi-ui/src/utils/request.js
+6
-9
No files found.
ruoyi-ui/package.json
View file @
fcf606ac
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
"highlight.js"
:
"9.18.5"
,
"highlight.js"
:
"9.18.5"
,
"js-beautify"
:
"1.13.0"
,
"js-beautify"
:
"1.13.0"
,
"js-cookie"
:
"2.2.1"
,
"js-cookie"
:
"2.2.1"
,
"jsencrypt"
:
"3.
0.0-rc
.1"
,
"jsencrypt"
:
"3.
2
.1"
,
"nprogress"
:
"0.2.0"
,
"nprogress"
:
"0.2.0"
,
"quill"
:
"1.3.7"
,
"quill"
:
"1.3.7"
,
"screenfull"
:
"5.0.2"
,
"screenfull"
:
"5.0.2"
,
...
...
ruoyi-ui/src/utils/request.js
View file @
fcf606ac
...
@@ -48,19 +48,16 @@ service.interceptors.response.use(res => {
...
@@ -48,19 +48,16 @@ service.interceptors.response.use(res => {
return
res
.
data
return
res
.
data
}
}
if
(
code
===
401
)
{
if
(
code
===
401
)
{
let
doms
=
document
.
getElementsByClassName
(
'
el-message-box
'
)[
0
]
MessageBox
.
confirm
(
'
登录状态已过期,您可以继续留在该页面,或者重新登录
'
,
'
系统提示
'
,
{
if
(
doms
===
undefined
){
MessageBox
.
confirm
(
'
登录状态已过期,您可以继续留在该页面,或者重新登录
'
,
'
系统提示
'
,
{
confirmButtonText
:
'
重新登录
'
,
confirmButtonText
:
'
重新登录
'
,
cancelButtonText
:
'
取消
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
type
:
'
warning
'
}
}
).
then
(()
=>
{
).
then
(()
=>
{
store
.
dispatch
(
'
LogOut
'
).
then
(()
=>
{
store
.
dispatch
(
'
LogOut
'
).
then
(()
=>
{
location
.
href
=
'
/index
'
;
location
.
href
=
'
/index
'
;
})
})
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
}
return
Promise
.
reject
(
'
无效的会话,或者会话已过期,请重新登录。
'
)
return
Promise
.
reject
(
'
无效的会话,或者会话已过期,请重新登录。
'
)
}
else
if
(
code
===
500
)
{
}
else
if
(
code
===
500
)
{
Message
({
Message
({
...
...
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