fix(harmony): 双列模式,点击图片等不能进入商品详情页面
This commit is contained in:
@@ -144,6 +144,14 @@ export default {
|
||||
},
|
||||
listenRefresh() {
|
||||
this.$emit('listenRefresh', true);
|
||||
},
|
||||
/**
|
||||
* 主动重建 slot DOM。
|
||||
* 鸿蒙下通过 :key 变化重建的 .goods-item 元素 @click 事件绑定会丢失,
|
||||
* 通过自增 listSlotKey 走 slot 重建路径可恢复事件绑定。
|
||||
*/
|
||||
forceSlotRebuild() {
|
||||
this.listSlotKey = (this.listSlotKey || 0) + 1;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user