|
@ -26,7 +26,6 @@ var vm = new Vue({ |
|
|
total: 0, |
|
|
total: 0, |
|
|
remaining: 0, |
|
|
remaining: 0, |
|
|
searchQuery: '', |
|
|
searchQuery: '', |
|
|
history: [] |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
@ -90,7 +89,9 @@ var vm = new Vue({ |
|
|
axios.get('/' + base_url + '/apis/search?keyword=' + this.searchQuery) |
|
|
axios.get('/' + base_url + '/apis/search?keyword=' + this.searchQuery) |
|
|
.then(function (response) { |
|
|
.then(function (response) { |
|
|
console.log('search response'); |
|
|
console.log('search response'); |
|
|
self.history = response.data['data']; |
|
|
|
|
|
|
|
|
console.log(response.data['data']); |
|
|
|
|
|
self.items = response.data['data']; |
|
|
|
|
|
self.searchQuery = ''; |
|
|
}) |
|
|
}) |
|
|
.catch(function (error) { |
|
|
.catch(function (error) { |
|
|
console.log('ERROR!! happend by Backend.') |
|
|
console.log('ERROR!! happend by Backend.') |
|
|