|
|
|
@ -1,10 +1,11 @@
|
|
|
|
|
import {uniFetch} from "@/http/main";
|
|
|
|
|
|
|
|
|
|
const fetch = new uniFetch({
|
|
|
|
|
baseUrl: 'https://warehouse.szjixun.cn',
|
|
|
|
|
interceptors: {
|
|
|
|
|
//请求拦截器
|
|
|
|
|
request(config) {
|
|
|
|
|
|
|
|
|
|
return config
|
|
|
|
|
},
|
|
|
|
|
//响应拦截器
|
|
|
|
|
response(response) {
|
|
|
|
@ -17,6 +18,7 @@ const fetch=new uniFetch({
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return response
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|