写一个名叫negatives的方法,对rating对象进行过滤返回:
negatives() {
// 过滤
return this.ratings.filter((rating) => {
return rating.rateType === 2
})
}