提交 53e276b8 编写于 作者: KK's avatar KK

zk——解决分页导航数据转化报错

上级 7df1239d
...@@ -374,9 +374,11 @@ FullCalendar, ...@@ -374,9 +374,11 @@ FullCalendar,
let handleEvents = ()=>{ let handleEvents = ()=>{
if(_this.isSelectFirstDefault){ if(_this.isSelectFirstDefault){
// 模拟$event数据 // 模拟$event数据
let tempEvent = JSON.parse(JSON.stringify(_this.events[0])); let tempEvent = JSON.parse(JSON.stringify(_this.events.length > 0?_this.events[0]:{}));
_this.onEventClick(tempEvent,true); _this.onEventClick(tempEvent,true);
_this.events[0].className = "select-first-event"; if(_this.events.length > 0){
_this.events[0].className = "select-first-event";
}
_this.calendarClass = "calendar select-first-calendar"; _this.calendarClass = "calendar select-first-calendar";
} }
let filterEvents = this.events.filter((event:any)=>{ let filterEvents = this.events.filter((event:any)=>{
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册