vue组件:
computed:{
…mapGetters({
page:‘thisPage’
}),
}
getter
thisPage:state => state.carteam.page,
报错
Computed property “page” was assigned to but it has no setter
修改
vue组件:
computed:{
page: {
get: function () {
return this.$store.state.carteam.page
},
set: function () {
}
}
}