Commit 474705285c542cf6f3f7159fc416c9fd0fda9003
1 parent
5bdc0182
赤峰分支
Showing
2 changed files
with
2 additions
and
2 deletions
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('http://39.98.54.240:8090/hmQrCodeInOutPark/noCarQRcodeInOutPark') | 43 | + this.$http.get('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 = '' | 4 | +axios.defaults.baseURL = 'http://39.98.54.240:8090/' |
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'; |