async asyncData({ $axios, error }) {
try {
const query = await $axios
.$get(`api/v1/${process.env.ADMIN_URL}/2/info`)
.then((response) => {
return response
})
.catch((error) => {
return error({ statusCode: 404 });
})
return {
clients: query.clients,
products: query.products,
posts: query.posts,
banners: query.banners,
shop: query.shop,
}
} catch (e) {
console.error(e)
}
},