Parcourir la source

fix: 优化需求245

ldong il y a 2 mois
Parent
commit
5b2cbef1b7
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      src/views/dataEntry_manage/components/barOptionSection.vue

+ 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,