From 429b4ea23cf2b264a0a6bb07443e11a575ce350f Mon Sep 17 00:00:00 2001 From: teukkk Date: Wed, 18 Sep 2024 17:39:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A8=E6=A0=BC=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E5=90=8E=E6=B8=85=E9=99=A4=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/pure/ms-table/base-table.vue | 1 + frontend/src/components/pure/ms-table/columnSelector.vue | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/pure/ms-table/base-table.vue b/frontend/src/components/pure/ms-table/base-table.vue index e2dae47c5a..198a3f0189 100644 --- a/frontend/src/components/pure/ms-table/base-table.vue +++ b/frontend/src/components/pure/ms-table/base-table.vue @@ -818,6 +818,7 @@ }; const handleInitColumn = async () => { + emit('sorterChange', {}); await initColumn(); }; diff --git a/frontend/src/components/pure/ms-table/columnSelector.vue b/frontend/src/components/pure/ms-table/columnSelector.vue index 1c24f74cd0..953a915873 100644 --- a/frontend/src/components/pure/ms-table/columnSelector.vue +++ b/frontend/src/components/pure/ms-table/columnSelector.vue @@ -160,7 +160,9 @@ subdirectoryVal.value ); emit('update:visible', false); - emit('initData'); + if (hasChange.value) { + emit('initData'); + } }; const loadColumn = (key: TableKeyEnum) => {