Commit 0bfdd97acb8d1f4b66f20f66bcadcce8b618e365

Authored by liuqimichale
1 parent e495e419

调接口

Showing 1 changed file with 7 additions and 12 deletions
src/components/home.vue
@@ -33,21 +33,16 @@ export default { @@ -33,21 +33,16 @@ export default {
33 ]) 33 ])
34 }, 34 },
35 created() { 35 created() {
  36 + this.$http.get('http://39.98.54.240:8090/hmQrCodeInOutPark/noCarQRcodeInOutPark')
  37 + .then(function(response) {
  38 + console.log(response)
  39 + })
  40 + .catch(function(error) {
  41 + console.log(error)
  42 + })
36 setTimeout(() => { 43 setTimeout(() => {
37 this.handleHide() 44 this.handleHide()
38 45
39 - // $http.get('/user', {  
40 - // params: {  
41 - // ID: 12345  
42 - // }  
43 - // })  
44 - // .then(function (response) {  
45 - // console.log(response);  
46 - // })  
47 - // .catch(function (error) {  
48 - // console.log(error);  
49 - // });  
50 -  
51 // $http.post('/user', { 46 // $http.post('/user', {
52 // firstName: 'Fred', 47 // firstName: 'Fred',
53 // lastName: 'Flintstone' 48 // lastName: 'Flintstone'