let arr = [
{
"name": "string",
"offset": 964
},
{
"name": "string",
"offset": 681
},
{
"name": "string"
"offset": 777
}
];
let sampleFile;
sampleFile = req.file.customFile;
// customFile где же объявление?
async asyncData({ $axios, error }) {
try {
const query = await $axios
.$get(`api/v1/${process.env.ADMIN_URL}/2/info`);
return {
clients: query.clients,
products: query.products,
posts: query.posts,
banners: query.banners,
shop: query.shop,
}
} catch (e) {
return error({ statusCode: 404 });
}
},