ymy 2 년 전
부모
커밋
e1f6e2abca
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      src/benyun/components/byTool/byTool.vue

+ 5 - 2
src/benyun/components/byTool/byTool.vue

@@ -36,8 +36,8 @@ export default class GmTools extends Vue {
   @Prop()
   propConfig:any
 
-  // @Prop()
-  // customTools:any;
+  @Prop()
+  customTools:any;
 
   get audit(){
     return this.propConfig?.audit ? this.propConfig.audit : {}
@@ -64,6 +64,9 @@ export default class GmTools extends Vue {
     if(this.propConfig?.customTools && this.propConfig?.customTools.length > 0){
       this.setCustomTools(this.propConfig?.customTools)
     }
+    if(this.customTools){
+      this.setCustomTools(this.customTools)
+    }
   }
 
   setTool(data:any){