@netsells/nuxt-hatchly
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -45,3 +45,3 @@ import Vue from 'vue'; | ||
async get({ commit }) { | ||
const { data } = await this.$axios.$get(`navigation/groups`); | ||
const { data } = await this.$axios.$get('navigation/groups'); | ||
@@ -48,0 +48,0 @@ let requests = data.map(({ key}) => this.$axios.$get(`navigation/groups/${ key }/items`)); |
@@ -38,10 +38,4 @@ import Vue from 'vue'; | ||
async get({ commit }) { | ||
const { data } = await this.$axios.$get('http://bsg-api.test/navigation/groups'); | ||
const { data } = await this.$axios.$get('snippets'); | ||
for (let i = 0; i < data.length; i++) { | ||
const key = data[i].key; | ||
const { data: items } = await this.$axios.$get(`http://bsg-api.test/navigation/groups/${ key }/items`); | ||
data[i].items = items; | ||
} | ||
commit('set', data); | ||
@@ -48,0 +42,0 @@ }, |
{ | ||
"name": "@netsells/nuxt-hatchly", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
438866
2415