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