Procházet zdrojové kódy

修改详情自定义按钮逻辑验证bug

wu před 3 měsíci
rodič
revize
c48d912895
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/views/basic/dynamicModel/list/index.vue

+ 1 - 1
src/views/basic/dynamicModel/list/index.vue

@@ -2201,7 +2201,7 @@ export default {
       }
       if (key === 'detail') {
         const find = this.systemBtns.find((o) => o.value === 'detail')
-        if (find.buttonId && (find.postEventNum || find.preEventNum)) {
+        if (find?.buttonId && (find.postEventNum || find.preEventNum)) {
           this.customBtnsHandel(find, { row: row })
         }
         this.addOrUpdateHandle(row, 'detail', this.config.fullName)