mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
Fix route name in 0.1.7
This commit is contained in:
parent
cf24b926a1
commit
7dd959bd21
@ -1,5 +1,5 @@
|
||||
module.exports = {
|
||||
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 %>',
|
||||
component: <%= route._name %><% if (route.name) { %>,
|
||||
name: <%= route.name %><% } %>
|
||||
name: '<%= route.name %>'<% } %>
|
||||
}<%= (i + 1 === routes.length ? '' : ',') %>
|
||||
<% }) %>
|
||||
]
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user