Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
4234059b
Commit
4234059b
authored
Apr 14, 2023
by
wenyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
token校验失败,调整首页
parent
b5a2c407
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
util/interceptor.ts
+5
-2
No files found.
util/interceptor.ts
View file @
4234059b
...
@@ -53,8 +53,11 @@ export const interceptor = () => {
...
@@ -53,8 +53,11 @@ export const interceptor = () => {
// uni.hideLoading()
// uni.hideLoading()
//console.log(args);
//console.log(args);
if
(
args
&&
args
.
data
&&
args
.
data
.
errorCode
&&
"T001"
==
args
.
data
.
errorCode
){
if
(
args
&&
args
.
data
&&
args
.
data
.
errorCode
&&
"T001"
==
args
.
data
.
errorCode
){
uni
.
redirectTo
({
// uni.redirectTo({
url
:
'/components/login/login'
// url:'/components/login/login'
// })
uni
.
switchTab
({
url
:
'/pages/index/index'
})
})
}
}
},
},
...
...
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