Commit c665fad8 by nil Committed by Gitee

update src/config/axios/service.ts.

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

Signed-off-by: nil <10466852+lkjj@user.noreply.gitee.com>
parent 019bd953
......@@ -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