zss
2023-09-14 4c5c20a7c03539104df74072b1b8a81b51c19ab8
src/main.js
@@ -23,7 +23,12 @@
Vue.use(qs);
Vue.use(api);
const javaApi = 'http://localhost:8001/'
const javaApi = 'http://192.168.0.23:8001'
// localhost 127.0.0.1
// const javaApi = 'http://127.0.0.1:8001/'
axios.defaults.baseURL = javaApi
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
@@ -55,6 +60,7 @@
      config.data = qs.parse(config.data)
      // console.log(config.data)
   }
   return config
}, function(error) {
@@ -117,4 +123,4 @@
   el: '#app',
   router,
   render: h => h(App)
});
});