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