Commit 9a7a9240a6d730fdadbe8a1c50db3a7de52d87cd

Authored by liuqimichale
1 parent b7ed685b

赤峰分支

src/components/home.vue
@@ -40,7 +40,7 @@ export default { @@ -40,7 +40,7 @@ export default {
40 // ]) 40 // ])
41 }, 41 },
42 created() { 42 created() {
43 - this.$http.get('hmQrCodeInOutPark/noCarQRcodeInOutPark') 43 + this.$http.get('http://39.98.54.240:8090/hmQrCodeInOutPark/noCarQRcodeInOutPark')
44 .then(function(response) { 44 .then(function(response) {
45 console.log(response) 45 console.log(response)
46 }) 46 })
src/https.js
1 import axios from 'axios' 1 import axios from 'axios'
2 2
3 axios.defaults.timeout = 5000 3 axios.defaults.timeout = 5000
4 -axios.defaults.baseURL = 'http://39.98.54.240:8090/' 4 +// axios.defaults.baseURL = ''
5 5
6 // post请求头 6 // post请求头
7 axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8' 7 axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'