Browse Source

update src/config/axios/service.ts.
判断条件没有在 if 中,没起到作用

Signed-off-by: nil <10466852+lkjj@user.noreply.gitee.com>

nil 8 tháng trước cách đây
mục cha
commit
c665fad8bc
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      src/config/axios/service.ts

+ 1 - 2
src/config/axios/service.ts

@@ -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)
       }
     })