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 @@