直接监听好像不可以,所以通过计算属性转了一下
computed: {
getInitCom() {
return this.$store.state.saleUi.initComplete
}
},
watch: {
getInitCom(n, o){
// todo
},
直接监听好像不可以,所以通过计算属性转了一下
computed: {
getInitCom() {
return this.$store.state.saleUi.initComplete
}
},
watch: {
getInitCom(n, o){
// todo
},
本文标题:watch里监听vuex里的变量
本文链接:https://www.haomeiwen.com/subject/hgnqvctx.html
网友评论