update src/config/axios/service.ts.
判断条件没有在 if 中,没起到作用 Signed-off-by: nil <10466852+lkjj@user.noreply.gitee.com>pull/608/head
parent
019bd9533e
commit
c665fad8bc
|
@ -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)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue