From 3be99f55b109aa9743a91d1f1ff95082632db0e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Tue, 6 Oct 2026 21:03:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=A2=E9=A1=B9=E7=9B=AE=E6=97=B6=E5=9B=9E?= =?UTF-8?q?=E6=94=B6=E6=88=AA=E5=9B=BE=E9=A2=84=E8=A7=88=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit useGameDistributionPublishForm.ts:重置效果调用 revokeTrackedObjectUrls,清掉 objectUrlsRef 里累计的截图预览 blob 地址。 --- .../game-distribution/useGameDistributionPublishForm.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/ai-game-creator-shell/src/components/game-distribution/useGameDistributionPublishForm.ts b/apps/ai-game-creator-shell/src/components/game-distribution/useGameDistributionPublishForm.ts index abee79220..3723f2953 100644 --- a/apps/ai-game-creator-shell/src/components/game-distribution/useGameDistributionPublishForm.ts +++ b/apps/ai-game-creator-shell/src/components/game-distribution/useGameDistributionPublishForm.ts @@ -386,6 +386,8 @@ export function useGameDistributionPublishForm({ publicationDraftAppliedRef.current = false; restoredDeclarationsRef.current = null; uploadedAssetCacheRef.current.clear(); + // 截图预览地址只登记在这里,没有「跟着某个 state 收」的效应;换项目时不清就会一直攒到卸载。 + revokeTrackedObjectUrls(objectUrlsRef.current); const suggestionRequestId = ++metadataSuggestionRequestRef.current; void suggestGameDistributionPublishMetadata({