From 75b73c6152fd84a779c17497b2e8fa568f25421c Mon Sep 17 00:00:00 2001 From: teukkk Date: Mon, 25 Nov 2024 18:02:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B):=20?= =?UTF-8?q?=E8=AF=84=E5=AE=A1=E8=AF=A6=E6=83=85-=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E8=AF=84=E5=AE=A1=E4=BA=BA=E5=B1=95=E7=A4=BA=E4=B8=8D=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1048352 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001048352 --- frontend/src/components/pure/ms-table/base-table.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/pure/ms-table/base-table.vue b/frontend/src/components/pure/ms-table/base-table.vue index f1dbb74ce4..13c6a746c5 100644 --- a/frontend/src/components/pure/ms-table/base-table.vue +++ b/frontend/src/components/pure/ms-table/base-table.vue @@ -905,10 +905,6 @@ const disableKey = (attrs?.rowSelectionDisabledConfig as MsTableRowSelectionDisabledConfig)?.disabledKey; return disableKey ? record[disableKey] : false; } - onMounted(async () => { - await initColumn(); - batchLeft.value = getBatchLeft(); - }); function hasSelectedFilter(item: MsTableColumnData) { if (item.filterConfig && item.dataIndex) { @@ -962,6 +958,12 @@ }); }; + onMounted(async () => { + await initColumn(); + updateAllTagVisibility(); + batchLeft.value = getBatchLeft(); + }); + function columnResize(dataIndex: string) { if (dataIndex) { updateAllTagVisibility();