Error: vuex getter properties are read-only.
解决方法:
我想把this.dataItem.answers对象赋值给 this.answer对象,但报错,原因是我这个answer变量是Vuex.Store中定义的只能通过在mutations中定义方法来修改,所以这些变量对外是只读的
this.answer=this.dataItem.answers;
后来通过循环所有属性赋值就可以了
for (let key in this.dataItem.answers) {
this.answer[key]=this.dataItem.answers[key];
}