Vue3 监听 props 是:watch(() => props.foo, () => { // balabala })而不是:watch(props.foo, () => { // balabala })props 下面的东西不是 ref 的。
Vue3 监听 props 是:
而不是:
props 下面的东西不是 ref 的。