watch(() => [state.formState.name,state.formState.post], (newValue,oldValue)=>{
console.log(newValue); //是数组
console.log(oldValue)
})
vue3使用watch监听多个数据
最新推荐文章于 2024-05-07 00:36:14 发布
watch(() => [state.formState.name,state.formState.post], (newValue,oldValue)=>{
console.log(newValue); //是数组
console.log(oldValue)
})