src/main.js
@@ -23,8 +23,7 @@ Vue.use(qs); Vue.use(api); const javaApi = 'http://10.20.102.112:8001' // localhost 127.0.0.1 const javaApi = 'http://localhost:8001' // const javaApi = 'http://127.0.0.1:8001/' @@ -68,6 +67,9 @@ }) axios.interceptors.response.use(res => { if(res.config.responseType === 'blob'){ return res; } return res.data }, async function(err) { if (JSON.stringify(err).indexOf('timeout of') > -1) {