在vuex中定义状态,实现在Vue组件中修改状态
computed:{
subjectYearXk:{
get(){
return this.$store.state.subjectYearXk;
},
set(v){
this.$store.state.subjectYearXk=v;
}
},
}
在vuex中定义状态,实现在Vue组件中修改状态
computed:{
subjectYearXk:{
get(){
return this.$store.state.subjectYearXk;
},
set(v){
this.$store.state.subjectYearXk=v;
}
},
}