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) => {}); },