更改前
computed: {
isShowAnswerCom() {
return this.isShowErrorQuestion === 0 ? this.isShowAnswer : 1
}
},
更改后
computed: {
isShowAnswerCom: {
get () {
return this.isShowErrorQuestion === 0 ? this.isShowAnswer : 1
},
set (v) {
this.isShowAnswer = v
}
}
},