Computed 和 Watch 的区别


  • 场景
    • computed: 依赖数据变化后重新计算派生值
    • watch: 依赖数据变化产生副作用