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){