报错: Computed property "totalScore" was assigned to but it has no setter
computed: {
totalScore() {
const total = this.model.paperPool.map((item) => { return item.num * item.sco}).reduce((pre,cur) => { return pre+cur; });
console.log(total + this.model.offlineTotalScore)
return total + this.model.offlineTotalScore;
},
},
楼主,参考下这个 https://segmentfault.com/q/10...,希望对你有所帮助~