From 85de031db2257718661245bcd65548252df5e023 Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 29 Oct 2024 08:39:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../biaopin/AppIntegratingTask/components/Add.vue | 12 ++++++------ .../biaopin/AppIntegratingTask/components/Detail.vue | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/project/biaopin/AppIntegratingTask/components/Add.vue b/project/biaopin/AppIntegratingTask/components/Add.vue index b52ae274..817bf40a 100644 --- a/project/biaopin/AppIntegratingTask/components/Add.vue +++ b/project/biaopin/AppIntegratingTask/components/Add.vue @@ -191,17 +191,17 @@ export default { watch: { 'form.intoTime': { handler(val) { - if(val) { - this.form.intoBegintime = val[0] - this.form.intoEndtime = val[1] + if (Array.isArray(val) && val.length >= 2) { + this.form.intoBegintime = val[0]; + this.form.intoEndtime = val[1]; } } }, 'form.exitTime': { handler(val) { - if(val) { - this.form.exitBegintime = val[0] - this.form.exitEndtime = val[1] + if (Array.isArray(val) && val.length >= 2) { + this.form.exitBegintime = val[0]; + this.form.exitEndtime = val[1]; } } } diff --git a/project/biaopin/AppIntegratingTask/components/Detail.vue b/project/biaopin/AppIntegratingTask/components/Detail.vue index a27e8f77..4c835169 100644 --- a/project/biaopin/AppIntegratingTask/components/Detail.vue +++ b/project/biaopin/AppIntegratingTask/components/Detail.vue @@ -8,6 +8,7 @@