vue3用废弃了vue2中的filter,那么如果需要,该怎么以处理呢,如下:
const setStatus = computed (() => {
return (row) =>{
if(row.isEnrollment){
return 1;
}
if([1, 2].indexOf(curerntTimeCompareDateTime(row.startTime)) > -1){
return -1
}else{
return 0
}
}
})