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
6f528d33
Commit
6f528d33
authored
Nov 17, 2022
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拦截器
parent
9f43ebd0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
manifest.json
+10
-1
util/interceptor.ts
+1
-1
No files found.
manifest.json
View file @
6f528d33
...
...
@@ -41,7 +41,8 @@
"<uses-permission android:name=
\"
android.permission.FLASHLIGHT
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
]
],
"minSdkVersion"
:
21
},
/*
ios打包配置
*/
"ios"
:
{
...
...
@@ -61,6 +62,14 @@
"UniversalLinks"
:
""
}
}
},
"splashscreen"
:
{
"androidStyle"
:
"default"
,
"android"
:
{
"hdpi"
:
""
,
"xhdpi"
:
""
,
"xxhdpi"
:
""
}
}
}
},
...
...
util/interceptor.ts
View file @
6f528d33
...
...
@@ -16,7 +16,7 @@ export const interceptor = () => {
// 当本地没有token,并且接口地址没在白名单内,需要重新获取token
if
(
!
uni
.
getStorageSync
(
'uni-token'
)
&&
!
whiteApiList
.
includes
(
args
.
url
))
{
uni
.
request
({
url
:
'
https://mdev.zuihuibi.cn
/api/authorize/obtainToken'
,
url
:
'/api/authorize/obtainToken'
,
method
:
'POST'
,
data
:{
ticket
:
'uni-app'
},
success
:
(
res
)
=>
{
...
...
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