diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/preview/PreviewWorkspace.tsx b/apps/ai-game-creator-shell/src/view/ui-editor/components/preview/PreviewWorkspace.tsx index 4a192e6e2..ac317ae3c 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/components/preview/PreviewWorkspace.tsx +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/preview/PreviewWorkspace.tsx @@ -476,7 +476,9 @@ export function PreviewWorkspace({ min={25} max={200} step={5} - value={Math.round(viewport.scale * 100)} + value={Math.round( + Number.parseInt(actions.displayPercent, 10), + )} aria-label="画布缩放" className="h-1 w-28 accent-orange-500" onChange={(event) =>