mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
Fix route name in 0.1.7
This commit is contained in:
parent
cf24b926a1
commit
7dd959bd21
@ -1,5 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
routes: [
|
routes: [
|
||||||
{ name: 'user', path: '/users/:id', component: 'pages/_user.vue' }
|
{ name: 'user', path: '/users/:id', component: 'pages/_user' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ export default new Router({
|
|||||||
{
|
{
|
||||||
path: '<%= route.path %>',
|
path: '<%= route.path %>',
|
||||||
component: <%= route._name %><% if (route.name) { %>,
|
component: <%= route._name %><% if (route.name) { %>,
|
||||||
name: <%= route.name %><% } %>
|
name: '<%= route.name %>'<% } %>
|
||||||
}<%= (i + 1 === routes.length ? '' : ',') %>
|
}<%= (i + 1 === routes.length ? '' : ',') %>
|
||||||
<% }) %>
|
<% }) %>
|
||||||
]
|
]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nuxt",
|
"name": "nuxt",
|
||||||
"version": "0.1.6",
|
"version": "0.1.7",
|
||||||
"description": "A minimalistic framework for server-rendered Vue.js applications (inspired by Next.js)",
|
"description": "A minimalistic framework for server-rendered Vue.js applications (inspired by Next.js)",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
Loading…
Reference in New Issue
Block a user