Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.0k views
in Technique[技术] by (71.8m points)

使用uni-app开发,微信小程序端组件绑定key使用问题

使用uni-app 开发,利用Vue特性给组件绑定key ,在绑定的key发生变化是,对应组件动态更新,app 和 h5端使用没有问题,微信小程序端key值变化,组件不更新,这个问题如何解决?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

那就wx:if 试试, 或者 看看试试页面数据延迟更新了。 有没有强制更新数据的方法?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...