dusenyao hace 2 años
padre
commit
69d1e7cf31
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/components/common/DateSearch.vue

+ 2 - 2
src/components/common/DateSearch.vue

@@ -43,11 +43,11 @@ export default {
   },
   computed: {
     join_org_time_min() {
-      if (this.join_org_time_min_date.length <= 0) return '';
+      if ((this.join_org_time_min_date?.length ?? 0) <= 0) return '';
       return `${this.join_org_time_min_date} ${this.join_org_time_min_hour}:${this.join_org_time_min_minute}`;
     },
     join_org_time_max() {
-      if (this.join_org_time_max_date.length <= 0) return '';
+      if ((this.join_org_time_max_date?.length ?? 0) <= 0) return '';
       return `${this.join_org_time_max_date} ${this.join_org_time_max_hour}:${this.join_org_time_max_minute}`;
     }
   },