vue监听vuex的store值的变化

直接上代码面试 computed: { getStoreItem () { return this.$store.state.test } }, watch: { getStoreItem () { console.log(this.$store.state.test,'asfas fas fas')
相关文章
相关标签/搜索