写法一:
// 侦听一个 getter
const state = reactive({
count: 0 })
watch(
() => state.count,
(count, prevCount
Vue3 watch 侦听 props 的变化
最新推荐文章于 2024-01-08 10:54:56 发布
写法一:
// 侦听一个 getter
const state = reactive({
count: 0 })
watch(
() => state.count,
(count, prevCount