Browse Source

fix: 修改commit错误

Ymm0008 4 years ago
parent
commit
67f7891ce9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/packages/utils/create/component.ts

+ 1 - 1
src/packages/utils/create/component.ts

@@ -8,7 +8,7 @@ export function createComponent(name: string) {
       _component.name = componentName;
       _component.name = componentName;
       _component.install = (vue: App) => {
       _component.install = (vue: App) => {
         vue.component(_component.name as string, _component);
         vue.component(_component.name as string, _component);
-        _component?.children?.length &&
+        _component.children.length &&
           _component.children.forEach((item: any) => {
           _component.children.forEach((item: any) => {
             vue.component(item.name as string, item);
             vue.component(item.name as string, item);
           });
           });