XiaoRuby
2023-09-24 2573c1c123a8464c312d27e380ac16d7e0ac2f11
src/main.js
@@ -23,9 +23,9 @@
Vue.use(qs);
Vue.use(api);
// const javaApi = 'http://192.168.14.249:8001'
const javaApi = 'http://localhost:8001'
const javaApi = 'http://127.0.0.1:8001/'
// const javaApi = 'http://127.0.0.1:8001/'
@@ -67,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) {