mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 08:37:23 +00:00
fix: router catchAll
This commit is contained in:
@@ -47,12 +47,12 @@ function getRoutes() {
|
||||
|
||||
if (locales) {
|
||||
routes.push({
|
||||
path: '/*',
|
||||
path: '/:catchAll(.*)',
|
||||
redirect: (route) => `/${getLangFromRoute(route)}/`,
|
||||
});
|
||||
} else {
|
||||
routes.push({
|
||||
path: '/*',
|
||||
path: '/:catchAll(.*)',
|
||||
redirect: '/',
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user