watch里监听vuex里的变量
2019-10-22 本文已影响0人
不再犹豫Debug
直接监听好像不可以,所以通过计算属性转了一下
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
},