fix: router catchAll

This commit is contained in:
chenjiahan
2020-07-04 21:30:31 +08:00
parent 7346f20e96
commit 59f9b851d6
2 changed files with 4 additions and 4 deletions

View File

@@ -47,12 +47,12 @@ function getRoutes() {
if (locales) {
routes.push({
path: '/*',
path: '/:catchAll(.*)',
redirect: (route) => `/${getLangFromRoute(route)}/`,
});
} else {
routes.push({
path: '/*',
path: '/:catchAll(.*)',
redirect: '/',
});
}