From 0bfdd97acb8d1f4b66f20f66bcadcce8b618e365 Mon Sep 17 00:00:00 2001 From: liuqimichale <123456lq> Date: Tue, 11 Dec 2018 09:36:08 +0800 Subject: [PATCH] 调接口 --- src/components/home.vue | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/components/home.vue b/src/components/home.vue index 7e18b7b..681e0ce 100644 --- a/src/components/home.vue +++ b/src/components/home.vue @@ -33,21 +33,16 @@ export default { ]) }, created() { + this.$http.get('http://39.98.54.240:8090/hmQrCodeInOutPark/noCarQRcodeInOutPark') + .then(function(response) { + console.log(response) + }) + .catch(function(error) { + console.log(error) + }) setTimeout(() => { this.handleHide() - // $http.get('/user', { - // params: { - // ID: 12345 - // } - // }) - // .then(function (response) { - // console.log(response); - // }) - // .catch(function (error) { - // console.log(error); - // }); - // $http.post('/user', { // firstName: 'Fred', // lastName: 'Flintstone' -- libgit2 0.21.4