setNowMaterialType方法被无限调用,实际数组有138个元素,139开始重复打印,v-for完成后应该终止了啊?
setNowMaterialType(param) {
// if(this.numberIndex >139 && this.numberIndex<=200 ){
// console.log(param)
// }
// this.numberIndex++;
console.log('JJJJJJJJJJJJJJ')
if (param.MaterialType === this.frstMaterialType) {
return true
} else {
this.frstMaterialType = param.MaterialType;
return false;
}
},
相关分类