- 博客(1)
- 收藏
- 关注
原创 组件中监听prop传的值变化watch不产生作用
原代码 // An highlighted block watch: { songDetail() { const vm = this; this.audioInfo = JSON.parse(JSON.stringify(this.songDetail)); } } 修改后 // An highlighted block watch: { songDetail: { immediate: true,//很重要!! handler()
2020-09-09 12:56:58 664
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人