From 8a7d9bcd4de19dd4c06142bb1938705a8c70aa62 Mon Sep 17 00:00:00 2001 From: "cn.shperry" Date: Sun, 19 Jun 2022 17:49:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E5=88=97=E8=AE=BE=E7=BD=AE=E4=B8=8B=E6=8B=89=E6=A1=86=E4=B8=AD?= =?UTF-8?q?=E5=81=B6=E7=8E=B0=E5=88=97=E6=95=B0=E6=8D=AE=E5=8C=BA=E5=9F=9F?= =?UTF-8?q?=E7=A9=BA=E7=99=BD=20(#1958)=20(#1981)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 舒培培 <622292@ky-tech.com.cn> --- .../Table/src/components/settings/ColumnSetting.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/Table/src/components/settings/ColumnSetting.vue b/src/components/Table/src/components/settings/ColumnSetting.vue index edac1313..24de7c8a 100644 --- a/src/components/Table/src/components/settings/ColumnSetting.vue +++ b/src/components/Table/src/components/settings/ColumnSetting.vue @@ -182,10 +182,12 @@ }); watchEffect(() => { - const columns = table.getColumns(); - if (columns.length && !state.isInit) { - init(); - } + setTimeout(() => { + const columns = table.getColumns(); + if (columns.length && !state.isInit) { + init(); + } + }, 0); }); watchEffect(() => {