Skip to content

Commit c665fad

Browse files
nilgitee-org
authored andcommitted
update src/config/axios/service.ts.
判断条件没有在 if 中,没起到作用 Signed-off-by: nil <[email protected]>
1 parent 019bd95 commit c665fad

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)