Преглед изворни кода

处理模板页面按钮渲染报错

lph пре 1 година
родитељ
комит
0e4a89c3c1
1 измењених фајлова са 4 додато и 3 уклоњено
  1. 4 3
      zkqy-ui/src/views/tablelist/commonTable/listInfo.vue

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

@@ -564,9 +564,10 @@ export default {
           this.excuteBtnArr = res.data.resultMap.button?.filter(
             (item) => item.btnGroupType == "right"
           );
-          this.topBtnArr = res.data.resultMap.button?.filter(
-            (item) => item.btnGroupType == "top"
-          );
+          this.topBtnArr =
+            res.data.resultMap.button?.filter(
+              (item) => item.btnGroupType == "top"
+            ) || [];
           this.calcuteExcuteCol();
           this.$nextTick(() => {
             this.$refs.tableRef.doLayout();