Explorar el Código

兼容模板页面接口修改

lph hace 1 año
padre
commit
68fc52456c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      zkqy-ui/src/views/tablelist/commonTable/listInfo.vue

+ 2 - 2
zkqy-ui/src/views/tablelist/commonTable/listInfo.vue

@@ -905,8 +905,8 @@ export default {
           }
           if (
             btnGroupType == "top" &&
-            !res.data.dfVueTemplate &&
-            !res.data.mainForm
+            (!res.data || !res.data.dfVueTemplate) &&
+            !res.data?.mainForm
           ) {
             //顶部判定逻辑
             this.$message.error("当前按钮未绑定表单!");