Commit c79f027d by 芋道源码 Committed by Gitee

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

Merge pull request !608 from nil/N/A
parents 019bd953 c665fad8
......@@ -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)
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment