45
chenyc
2022-10-27 ec62e93bf5570acc20eaa71b11b7c33e5d162f89
src/utils/axios.ts
@@ -57,7 +57,6 @@
// 前置拦截器(发起请求之前的拦截)
instance.interceptors.request.use((config: AxiosRequestConfig) => {
    console.log('sss',config)
    config.headers && (config.headers['Authorization'] = getToken())
    const controller = new AbortController()
    config.signal = controller.signal