Nuxt.js で独自の route を定義する
例えば /@foo
のような route を定義したい場合、次のようにすると pages/_slug/index.vue
の $route.params.slug
で foo
を取得できます。
nuxt.config.js
Read other posts
例えば /@foo
のような route を定義したい場合、次のようにすると pages/_slug/index.vue
の $route.params.slug
で foo
を取得できます。
nuxt.config.js