From d333a043794a3b8f7b03a659a676cbf5910bed2e Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 18 Jan 2026 11:38:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=20key=20=E5=BC=BA?= =?UTF-8?q?=E5=88=B6=20ImagePreview=20=E5=9C=A8=E7=8A=B6=E6=80=81=E5=8F=98?= =?UTF-8?q?=E5=8C=96=E6=97=B6=E9=87=8D=E6=96=B0=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 使用处理状态作为 key 的一部分 - 确保 isProcessing* 变化时组件重新创建 --- components/elements/response.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/elements/response.tsx b/components/elements/response.tsx index a1053edea..14cea4532 100644 --- a/components/elements/response.tsx +++ b/components/elements/response.tsx @@ -45,7 +45,10 @@ export const Response = ({ if (!src) { return null; } + // 使用 key 强制在处理状态变化时重新渲染组件 + const processingKey = `${isProcessingEnhance}-${isProcessingRmbg}-${isProcessingExtend}-${isProcessingAngleEdit}`; return