From 12e08703d4838403e45b5373134ef442b455f281 Mon Sep 17 00:00:00 2001 From: zerosaturation Date: Wed, 3 Jun 2026 18:18:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/pages/square/components/CreationGrid.vue | 3 ++- frontend/pages/square/components/HotCategoryBlock.vue | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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(() => {