computed: {
...mapState({
guideStep: state => state.guide.step
})
},
watch: {
guideStep(value, old) {
return this.step = value;
}
},
computed: {
...mapState({
guideStep: state => state.guide.step
})
},
watch: {
guideStep(value, old) {
return this.step = value;
}
},
本文标题:监听vuex变量的变化
本文链接:https://www.haomeiwen.com/subject/ffwknhtx.html
网友评论