computed: {
people_num() {
return this.$store.state.people_num;
},
},
改成
computed:{
people_num:{
get(){
return this.$store.state.people_num;
},
set(value){
return value;
}
}
},