From d650c0e0b5c6bfeb834e982c223deccc6d32845c Mon Sep 17 00:00:00 2001 From: hanqin Date: Thu, 30 Apr 2026 16:23:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=BA=97=E8=B4=AD=E4=B9=B0=E4=BA=86?= =?UTF-8?q?=E5=95=86=E5=93=81=E4=BB=A5=E5=90=8E=E5=BA=94=E8=AF=A5=E7=AB=8B?= =?UTF-8?q?=E5=88=BB=E5=88=B7=E6=96=B0=E7=81=B5=E7=9F=B3=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Build_God_Game/src/views/ShopView.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Build_God_Game/src/views/ShopView.vue b/Build_God_Game/src/views/ShopView.vue index be3d559..6a2683b 100644 --- a/Build_God_Game/src/views/ShopView.vue +++ b/Build_God_Game/src/views/ShopView.vue @@ -95,7 +95,8 @@ const handleBuy = async (item: ShopItemDisplay) => { await buyItem(item.shopItemId) ElMessage.success(`购买成功!${item.itemName}`) await fetchShop() - await characterStore.fetchCharacters() + // fetchCharacters 只更新列表,不更新 currentCharacter;灵石显示依赖后者 + await characterStore.refreshCurrentCharacter() } catch (err: any) { ElMessage.error(err.message || '购买失败') } finally {