diff --git a/src/components/home.vue b/src/components/home.vue index a46d8d0..da4210c 100644 --- a/src/components/home.vue +++ b/src/components/home.vue @@ -40,7 +40,7 @@ export default { // ]) }, created() { - this.$http.get('hmQrCodeInOutPark/noCarQRcodeInOutPark') + this.$http.get('http://39.98.54.240:8090/hmQrCodeInOutPark/noCarQRcodeInOutPark') .then(function(response) { console.log(response) }) diff --git a/src/https.js b/src/https.js index 27d677d..beb54b3 100644 --- a/src/https.js +++ b/src/https.js @@ -1,7 +1,7 @@ import axios from 'axios' axios.defaults.timeout = 5000 -axios.defaults.baseURL = 'http://39.98.54.240:8090/' +// axios.defaults.baseURL = '' // post请求头 axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'