feat: add tinymce embedded form example

This commit is contained in:
vben
2020-11-05 23:43:34 +08:00
parent 2859067621
commit 58f988a718
6 changed files with 43 additions and 32 deletions

View File

@@ -44,8 +44,10 @@ export function genRouteModule(moduleList: AppRouteModule[]) {
// 动态引入
function asyncImportRoute(routes: AppRouteRecordRaw[]) {
routes.forEach((item) => {
const { component, children } = item;
let { component } = item;
const { children } = item;
if (component) {
component = component.replace(/^\//, '');
item.component = () => import(`/@/views/${component}`);
}
children && asyncImportRoute(children);