[Doc] optimzie router & remove unused code (#640)

This commit is contained in:
neverland
2018-02-12 17:23:37 +08:00
committed by GitHub
parent e1123c4116
commit 3991ec3bc9
28 changed files with 154 additions and 230 deletions
+2 -2
View File
@@ -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