Skip to content

Commit

Permalink
fix: theme sub-routes and navigation to non-existent routes
Browse files Browse the repository at this point in the history
  • Loading branch information
qiqingfu committed Nov 25, 2020
1 parent 3b9fcae commit d4211fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/route.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const generateMiscRoutes = function (lang) {
component: load(lang, 'theme-nav'),
children: [
{
path: '/', // 主题管理
path: '', // 主题管理
name: 'theme' + lang,
meta: { lang },
component: load(lang, 'theme')
Expand Down Expand Up @@ -156,7 +156,7 @@ let defaultPath = '/zh-CN'

route = route.concat([
{
path: '/',
path: '',
redirect: { path: defaultPath }
},
{ path: '/:pathMatch(.*)*', redirect: { path: defaultPath } }
Expand Down

0 comments on commit d4211fa

Please sign in to comment.