diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/workflowCompletionNotice.ts b/apps/ai-game-creator-shell/src/view/ui-editor/components/workflowCompletionNotice.ts index 1c0bfbfa0..ff90b6dd5 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/components/workflowCompletionNotice.ts +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/workflowCompletionNotice.ts @@ -13,7 +13,14 @@ export function appendWorkflowCheckPrompt(message: string): string { } export function workflowStepLabel(step: UiEditorStepId): string { - if (step === 'reference-analysis') return '分析参考图'; - if (step === 'structure-recognition') return '识别界面结构'; - return '绑定视觉素材'; + switch (step) { + case 'reference-analysis': + return '分析参考图'; + case 'structure-recognition': + return '识别界面结构'; + case 'visual-binding': + return '绑定视觉素材'; + } + const exhaustiveCheck: never = step; + return exhaustiveCheck; }