mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
fix: non-empty path must start with "/"
This commit is contained in:
@@ -28,7 +28,7 @@ function getRoutes() {
|
||||
|
||||
if (langs.length) {
|
||||
routes.push({
|
||||
path: '*',
|
||||
path: '/*',
|
||||
redirect: (route) => `/${getLangFromRoute(route)}/`,
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user