chore(cli): fix missing route name

This commit is contained in:
chenjiahan
2020-11-21 21:08:41 +08:00
parent 1aee7f5e66
commit 265ca82686
3 changed files with 5 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ function getRoutes() {
function addHomeRoute(Home, lang) {
routes.push({
name: lang,
name: lang || 'home',
path: `/${lang || ''}`,
component: Home,
meta: { lang },