From 71f2e5f504467de5305b5d0776f516f1a1a51e9d Mon Sep 17 00:00:00 2001 From: layhuts Date: Sat, 9 May 2026 22:51:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4onConfirm=E4=B8=AD?= =?UTF-8?q?=E7=9A=84setTimeout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playground/src/views/examples/vxe-table/viewed.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/playground/src/views/examples/vxe-table/viewed.vue b/playground/src/views/examples/vxe-table/viewed.vue index ecafe0da3..e535fe939 100644 --- a/playground/src/views/examples/vxe-table/viewed.vue +++ b/playground/src/views/examples/vxe-table/viewed.vue @@ -124,11 +124,9 @@ const [Modal, modalApi] = useVbenModal({ draggable: true, onConfirm: () => { modalApi.setState({loading: true}); - setTimeout(() => { - editRow.value && gridApi.markRowAsViewed(editRow.value); - modalApi.setState({loading: false}); - modalApi.close(); - }, 1500); + editRow.value && gridApi.markRowAsViewed(editRow.value); + modalApi.setState({loading: false}); + modalApi.close(); }, });