From fd3dc4dadaee9efd5b4b686047a788fadfaf0284 Mon Sep 17 00:00:00 2001 From: ym Date: Thu, 28 May 2026 16:42:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BD=95=E5=88=B6=E8=AE=A1?= =?UTF-8?q?=E5=88=92-=E7=BC=96=E8=BE=91=E6=97=B6=E7=9A=84=E5=9B=9E?= =?UTF-8?q?=E6=98=BE=E5=8A=A0=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/common/weekTimePicker.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/web/src/views/common/weekTimePicker.vue b/web/src/views/common/weekTimePicker.vue index 7598b620e..373be8414 100644 --- a/web/src/views/common/weekTimePicker.vue +++ b/web/src/views/common/weekTimePicker.vue @@ -148,10 +148,17 @@ export default { } }, watch: { - planArray: function(array) { - for (let i = 0; i < array.length; i++) { - this.weekData[i].data = array[i].data - } + planArray: { + handler(array) { + if (!array || !array.length) { + return + } + for (let i = 0; i < array.length; i++) { + this.weekData[i].data = array[i].data + } + }, + deep: true, + immediate: true } }, created() {