Преглед на файлове

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

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