Commit 6286bf08 authored by jyx's avatar jyx

延迟更新收藏状态

parent c8594842
......@@ -28,9 +28,10 @@
onReady() {
this.initData();
// 监听收藏变动
watchCollectionChange(() => {
console.log('LLLLLLLLLLLLLLLL')
this.refreshCollect();
watchCollectionChange(() => {
setTimeout(() => {
this.refreshCollect();
}, 1000)
}, this);
},
onShow() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment