赞
踩
// request 拦截器 request.interceptors.request.use(config => { // 设置请求头 config.headers['token'] = localStorage.token; return config }, error => { return Promise.reject(error) });