diff --git a/src/router/utils.ts b/src/router/utils.ts index cb0930c..06645f2 100644 --- a/src/router/utils.ts +++ b/src/router/utils.ts @@ -307,7 +307,8 @@ function addAsyncRoutes(arrRoutes: Array) { v.name = (v.children[0].name as string) + "Parent"; if (v.meta?.frameSrc) { v.component = IFrame; - } else { + } else if (!v.children) { + // 避免渲染form.vue组件 // 对后端传component组件路径和不传做兼容(如果后端传component组件路径,那么path可以随便写,如果不传,component组件路径会跟path保持一致) const index = v?.component ? modulesRoutesKeys.findIndex(ev => ev.includes(v.component as any))