computed: { isFollow () { return this.$store.state.demo.id; //需要监听的数据 } }, watch: { isFollow (newVal, oldVal) { //do something } }, 转载于:https://www.cnblogs.com/Mr-Rshare/p/9680741.html