Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuYingJiH5-ASD
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinzhedeai
GaoQuYingJiH5-ASD
Commits
dc88de24
Commit
dc88de24
authored
Feb 06, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 请求中台 401错误时清空token,跳转会首页重新登录
parent
5684165a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
http.js
sdk/http.js
+4
-1
No files found.
sdk/http.js
View file @
dc88de24
...
...
@@ -81,10 +81,13 @@ var http2 = {
const
decryptRes
=
JSON
.
parse
(
sm2_decrypt_result
)
if
(
decryptRes
.
code
===
400
||
decryptRes
.
code
===
401
||
decryptRes
.
status
===
401
){
gemhoUtil
.
setCookie
(
'
token
'
,
''
)
// 清空token
vant
.
Dialog
.
alert
({
title
:
'
信息提示
'
,
message
:
decryptRes
.
msg
||
decryptRes
.
message
,
})
}).
then
(()
=>
{
// confirm按钮回调
gemhoUtil
.
navigatePage
(
'
../index.html
'
)
});
return
}
...
...
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