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