!608 update src/config/axios/service.ts.

Merge pull request !608 from nil/N/A
pull/613/head
芋道源码 2024-12-01 07:19:14 +00:00 committed by Gitee
commit c79f027d62
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)
} }
}) })