build: add files of vant-cli 2

This commit is contained in:
陈嘉涵
2019-11-21 14:43:22 +08:00
parent f6650aa1cd
commit 08e9d99699
46 changed files with 12125 additions and 249 deletions
+24
View File
@@ -0,0 +1,24 @@
import { documents } from '../../dist/desktop-config';
const routes = [];
const names = Object.keys(documents);
Object.keys(documents).forEach((name, index) => {
if (index === 0) {
routes.push({
path: '*',
redirect: () => `/${names[0]}`
});
}
routes.push({
name,
component: documents[name],
path: `/${name}`,
meta: {
name
}
});
});
export default routes;