company_admin/src/utils/request.js
@@ -3,6 +3,7 @@ import pkg from '../../package' import { trim } from './util' import cache from '../plugins/cache' import { Message } from 'element-ui' axios.defaults.headers.common['Content-Type'] = 'application/json;charset=UTF-8' const axiosInstance = axios.create({ @@ -40,6 +41,9 @@ // 新建响应拦截器 axiosInstance.interceptors.response.use((response) => { // console.log(response.status) // debugger // 请求失败 if (response.status !== 200) { return Promise.reject(new Error('服务器繁忙,请稍后再试'))