Selaa lähdekoodia

修复更换列表问题

wolyshaw 4 vuotta sitten
vanhempi
commit
c352213695
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/views/businessManager/resetList/index.vue

+ 1 - 1
src/views/businessManager/resetList/index.vue

@@ -316,7 +316,7 @@ export default {
   },
   },
   methods: {
   methods: {
     init() {
     init() {
-      if (this.searchForm.resetDate.length < 1) {
+      if (this.searchForm.resetDate?.length < 1) {
         this.searchForm.resetDate = [];
         this.searchForm.resetDate = [];
         this.searchForm.resetDate.push(getNowDateAndMonday(nowTime));
         this.searchForm.resetDate.push(getNowDateAndMonday(nowTime));
         this.searchForm.resetDate.push(getNowDateAndSunday(nowTime));
         this.searchForm.resetDate.push(getNowDateAndSunday(nowTime));