From c7fe72bf3bcdb33b951e3a0000acbc380d1df039 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Wed, 29 May 2024 14:50:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homePage/components/tableMain.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/homePage/components/tableMain.vue b/src/views/homePage/components/tableMain.vue index a503364..b954865 100644 --- a/src/views/homePage/components/tableMain.vue +++ b/src/views/homePage/components/tableMain.vue @@ -1293,7 +1293,10 @@ export default { // 数据发生变化时的处理逻辑 console.log("数据已更新:", newVal); this.getNumber(); - this.startCountdown(); + this.$nextTick(() => { + this.startCountdown(); // 确保在 DOM 更新后执行 + }); + // this.startCountdown(); }, deep: true, }, @@ -1758,6 +1761,8 @@ export default { this.$refs.ywMultipleTable.clearSelection(); this.idArray = []; console.log(this.multipleSelection); + console.log("我执行了命令"); + this.$parent.fetchData(); }) .catch((err) => {}); },