vue 监听store中的数值时间:2023-02-03 07:06:26 computed: { isFollow () { return this.$store.state.demo.id; //需要监听的数据 } }, watch: { isFollow (newVal, oldVal) { //do something } },