1
什么是从组件中聆听店内吸气剂的正确方法?商店取消订阅与观察者
手表是否应该使用,还是应该订阅?
这是目前我在做什么:
this.watcher_handle = this.$watch(() => {
return this.$store.getters.someValue;
}, (new_value, old_value) => {
// Do something cool
});
是什么在两个优点有什么区别?
是的,但是这样做,使用手表还是订阅有什么区别? – Sean