Przeglądaj źródła

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

lph 1 rok temu
rodzic
commit
0e4a89c3c1

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