diff --git a/frontend/pages/square/components/CreationGrid.vue b/frontend/pages/square/components/CreationGrid.vue index df234f8..b8b428b 100644 --- a/frontend/pages/square/components/CreationGrid.vue +++ b/frontend/pages/square/components/CreationGrid.vue @@ -176,6 +176,7 @@ watch( ); onMounted(() => { + loadUsers(); isComponentMounted = true; // 监听点赞事件,实时更新点赞数 uni.$on("assetLiked", ({ asset_id, data }) => { @@ -198,7 +199,7 @@ onMounted(() => { }); onShow(()=>{ - loadUsers(); + // loadUsers(); }) diff --git a/frontend/pages/square/components/HotCategoryBlock.vue b/frontend/pages/square/components/HotCategoryBlock.vue index fc1f7a1..4ffec8c 100644 --- a/frontend/pages/square/components/HotCategoryBlock.vue +++ b/frontend/pages/square/components/HotCategoryBlock.vue @@ -193,10 +193,11 @@ const loadData = async () => { onMounted(() => { uni.$on("assetLiked", onAssetLiked); + loadData(); }); onShow(() => { - loadData(); + // loadData(); }); onUnmounted(() => {