zouyu
2023-09-24 58c4b6003ad6f9a96d53c944bedc09f6ec3f0910
src/main.js
@@ -12,7 +12,6 @@
import swal from 'sweetalert'
Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80/"; //前端本地端口
Vue.prototype.HaveJson = (val) => {
   return JSON.parse(JSON.stringify(val))
}
@@ -24,8 +23,7 @@
Vue.use(qs);
Vue.use(api);
const javaApi = 'http://192.168.0.23:8001'
// localhost 127.0.0.1
const javaApi = 'http://localhost:8001'
// const javaApi = 'http://127.0.0.1:8001/'
@@ -69,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) {