Fix route name in 0.1.7

This commit is contained in:
Sébastien Chopin 2016-11-07 21:42:48 +01:00
parent cf24b926a1
commit 7dd959bd21
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
module.exports = {
routes: [
{ name: 'user', path: '/users/:id', component: 'pages/_user.vue' }
{ name: 'user', path: '/users/:id', component: 'pages/_user' }
]
}

View File

@ -32,7 +32,7 @@ export default new Router({
{
path: '<%= route.path %>',
component: <%= route._name %><% if (route.name) { %>,
name: <%= route.name %><% } %>
name: '<%= route.name %>'<% } %>
}<%= (i + 1 === routes.length ? '' : ',') %>
<% }) %>
]

View File

@ -1,6 +1,6 @@
{
"name": "nuxt",
"version": "0.1.6",
"version": "0.1.7",
"description": "A minimalistic framework for server-rendered Vue.js applications (inspired by Next.js)",
"main": "index.js",
"license": "MIT",