From c665fad8bce871f56ff4809156b0834e08824fe2 Mon Sep 17 00:00:00 2001 From: nil <10466852+lkjj@user.noreply.gitee.com> Date: Sat, 30 Nov 2024 10:54:45 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/config/axios/service.ts.=20?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6=E6=B2=A1=E6=9C=89=E5=9C=A8?= =?UTF-8?q?=20if=20=E4=B8=AD=EF=BC=8C=E6=B2=A1=E8=B5=B7=E5=88=B0=E4=BD=9C?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nil <10466852+lkjj@user.noreply.gitee.com> --- src/config/axios/service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/config/axios/service.ts b/src/config/axios/service.ts index ae3845c0..618f14a9 100644 --- a/src/config/axios/service.ts +++ b/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) } })