diff --git a/components/SearchInput.vue b/components/SearchInput.vue index e3b4a1a..202b7fd 100644 --- a/components/SearchInput.vue +++ b/components/SearchInput.vue @@ -135,12 +135,6 @@
{{ xml.tags.opening_hours }}
- @@ -174,21 +168,21 @@ export default { if (!name.length) { this.data = [] } - // this.isFetching = true - // axios - // .get(`https://demo.addok.xyz/search/?q=${name}`) - // .then(({ data }) => { - // console.log('data', data) - // this.data = [] - // data.results.forEach((item) => this.data.push(item)) - // }) - // .catch((error) => { - // this.data = [] - // throw error - // }) - // .finally(() => { - // this.isFetching = false - // }) + this.isFetching = true + this.$axios + .get(`https://demo.addok.xyz/search/?q=${name}`) + .then(({ data }) => { + console.log('data', data) + this.data = [] + data.results.forEach((item) => this.data.push(item)) + }) + .catch((error) => { + this.data = [] + throw error + }) + .finally(() => { + this.isFetching = false + }) // axios // .get(`https://api.openstreetmap.org/api/0.6/node/6126513555`) // .then(({ data }) => { diff --git a/layouts/default.vue b/layouts/default.vue index 2d12356..75bba6e 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -7,9 +7,7 @@ >
- logo osm + logo osm Sur OSM @@ -23,10 +21,13 @@
- +
  • - + {{ item.title }}
  • @@ -41,21 +42,12 @@