在axios的封装文件中添加
import axios from 'axios'
let router = import(/router);
let source = axios.CancelToken.source();
const baseURL = process.env.VUE_APP_MODE == 'development' ? '/api' : process.env.VUE_APP_API_URL
//service 循环遍历输出不同的请求方法
let instance = ax