Skip to content

Commit c79f027

Browse files
YunaiVgitee-org
authored andcommitted
!608 update src/config/axios/service.ts.
Merge pull request !608 from nil/N/A
2 parents 019bd95 + c665fad commit c79f027

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/config/axios/service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ service.interceptors.request.use(
4444
// 是否需要设置 token
4545
let isToken = (config!.headers || {}).isToken === false
4646
whiteList.some((v) => {
47-
if (config.url) {
48-
config.url.indexOf(v) > -1
47+
if (config.url && config.url.indexOf(v) > -1) {
4948
return (isToken = false)
5049
}
5150
})

0 commit comments

Comments
 (0)