From 305971e2ac243047897bee96b4b09d5adebed5c6 Mon Sep 17 00:00:00 2001 From: KDZhu Date: Tue, 24 Sep 2024 10:25:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dheader-rewrite?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=B1=95=E7=A4=BA=E9=97=AE=E9=A2=98=20#=20Re?= =?UTF-8?q?viewed,=20transaction=20id:=2019178?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugin-manage/config-display-table-header-rewrite.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/dashboard-front/src/views/components/plugin-manage/config-display-table-header-rewrite.vue b/src/dashboard-front/src/views/components/plugin-manage/config-display-table-header-rewrite.vue index f03653f5a..3ab5304f4 100644 --- a/src/dashboard-front/src/views/components/plugin-manage/config-display-table-header-rewrite.vue +++ b/src/dashboard-front/src/views/components/plugin-manage/config-display-table-header-rewrite.vue @@ -89,8 +89,12 @@ const tableData = computed(() => { }); } }); - setterData[0].rowSpan = setterData.length; - removerData[0].rowSpan = removerData.length; + if (setterData.length > 0) { + setterData[0].rowSpan = setterData.length; + } + if (removerData.length > 0) { + removerData[0].rowSpan = removerData.length; + } return [...setterData, ...removerData]; });