yusheng há 11 meses atrás
pai
commit
532628add6
2 ficheiros alterados com 2 adições e 1 exclusões
  1. 1 0
      src/components/addDoc/file-edit.vue
  2. 1 1
      src/micro-app.js

+ 1 - 0
src/components/addDoc/file-edit.vue

@@ -196,6 +196,7 @@
         this.options = this.nodeData.id ? await listCode(this.nodeData) : [];
         this.options = this.nodeData.id ? await listCode(this.nodeData) : [];
         if (this.options.length > 0) {
         if (this.options.length > 0) {
           this.form.businessCodeId = this.options[0].id;
           this.form.businessCodeId = this.options[0].id;
+          this.form.codeType=this.options[0].parentId
         } else {
         } else {
           this.form.businessCodeId = '';
           this.form.businessCodeId = '';
         }
         }

+ 1 - 1
src/micro-app.js

@@ -71,7 +71,7 @@ const apps = microApps.map((item) => {
     props: {
     props: {
       routerBase: item.activeRule, // 下发基础路由
       routerBase: item.activeRule, // 下发基础路由
       // actions
       // actions
-      fileMain,
+      fileMain, //文档上传组件 下发给子应用
       store
       store
     }
     }
   };
   };