update src/config/axios/service.ts.

判断条件没有在 if 中,没起到作用

Signed-off-by: nil <10466852+lkjj@user.noreply.gitee.com>
pull/608/head
nil 2024-11-30 10:54:45 +00:00 committed by Gitee
parent 019bd9533e
commit c665fad8bc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 2 deletions

View File

@ -44,8 +44,7 @@ service.interceptors.request.use(
// 是否需要设置 token // 是否需要设置 token
let isToken = (config!.headers || {}).isToken === false let isToken = (config!.headers || {}).isToken === false
whiteList.some((v) => { whiteList.some((v) => {
if (config.url) { if (config.url && config.url.indexOf(v) > -1) {
config.url.indexOf(v) > -1
return (isToken = false) return (isToken = false)
} }
}) })