chenyc
2023-05-28 aae6cb63fac8f2956615481382c101cfd2e7d45c
src/utils/axios.ts
@@ -8,7 +8,8 @@
let controllers: AbortController[] = []
const BASE_URL = 'https://hemobs.icoldchain.cn'
// const BASE_URL = 'https://hemobs.icoldchain.cn'
const  BASE_URL='http://testbs.ihemodialysis.com'
const TIME_OUT = 10 * 1000
interface IResponseError {
@@ -57,7 +58,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