Browse Source

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

wu 3 tháng trước cách đây
mục cha
commit
c48d912895
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)