浏览代码

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

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();