update src/config/axios/service.ts.

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

Signed-off-by: nil <10466852+lkjj@user.noreply.gitee.com>
This commit is contained in:
nil authored and Gitee committed 2024-11-30 10:54:45 +00:00
1 parent 019bd9533e
commit c665fad8bc
1 file changed
+1 -2
+1 -2
View File
@@ -44,8 +44,7 @@ service.interceptors.request.use(
// 是否需要设置 token
let isToken = (config!.headers || {}).isToken === false
whiteList.some((v) => {
if (config.url) {
config.url.indexOf(v) > -1
if (config.url && config.url.indexOf(v) > -1) {
return (isToken = false)
}
})