ldong 2 місяців тому
батько
коміт
5b2cbef1b7

+ 4 - 1
src/views/dataEntry_manage/components/barOptionSection.vue

@@ -150,7 +150,10 @@ export default {
   },
   watch: {
     datedata(newval) {
-      this.dateList = newval.map((_,index) => ({
+      if(!newval){
+        newval=[]
+      }
+      this.dateList =newval.map((_,index) => ({
         ...this.dateList[index],
         Color: _.Color,
         RealDate: this.dateList[index].Type === 3 ? this.dateList[index].Date : _.Date,