IT
Size: a a a
IT
👑R
👑R
H
ssr: false,
target: 'static',
head: {
title: 'title of project',
htmlAttrs: {
lang: 'en'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1' },
{ hid: 'description', name: 'description', content: 'some description' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.svg' },
},
generate: {
subFolders: false,
routes: ['/about', ]
},
export default {
head() {
return {
title: 'About - 2222',
meta: [
{
hid: 'description',
name: 'description',
content: '11111111111111'
}
]
}
},
}КГ
КГ
КГ
V
КГ
КГ
IT
IT
BS
BI
MB

A
A
Как использовать, куда нужно импортировать не понятно.
// pages/posts/_id.vue
export default {
async asyncData(context) {
const id = context.params.id
try {
// Using the nuxtjs/http module here exposed via context.app
const post = await context.app.$http.$get(
`https://api.nuxtjs.dev/posts/${id}`
)
return { post }
} catch (e) {
context.error(e) // Show the nuxt error page with the thrown error
}
}
}
A
МД

A
