[Doc] optimzie router & remove unused code (#640)
This commit is contained in:
+2
-2
@@ -22,7 +22,7 @@ const registerRoute = (isExample) => {
|
||||
} else {
|
||||
route.push({
|
||||
path: `/${lang}`,
|
||||
redirect: `/${lang}/component/intro`
|
||||
redirect: `/${lang}/intro`
|
||||
});
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ const registerRoute = (isExample) => {
|
||||
route.push({
|
||||
name,
|
||||
component,
|
||||
path: `/${lang}/component${path}`,
|
||||
path: `/${lang}${path}`,
|
||||
meta: {
|
||||
lang,
|
||||
name: page.title
|
||||
|
||||
Reference in New Issue
Block a user