From 3bcabe36fa734ccdd98405e2e75c3091301e62eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sat, 12 Sep 2026 14:54:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E5=AD=97=E4=BD=93=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E4=B8=AD=E7=9A=84=E5=86=97=E4=BD=99=E7=A9=BA=E5=80=BC?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 按 FontSource 的实际联合类型保留运行时字体资源校验。 --- .../src/features/ui-editor/requisites.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/ai-game-creator-shell/src/features/ui-editor/requisites.ts b/apps/ai-game-creator-shell/src/features/ui-editor/requisites.ts index 14a77a269..759792923 100644 --- a/apps/ai-game-creator-shell/src/features/ui-editor/requisites.ts +++ b/apps/ai-game-creator-shell/src/features/ui-editor/requisites.ts @@ -194,12 +194,7 @@ export function validateAssetSeparationResult( } if ('Text' in component) { const font = component.Text.font; - if ( - font !== null && - font !== undefined && - typeof font !== 'string' && - !(font.Bound in state.font_assets) - ) { + if (typeof font !== 'string' && !(font.Bound in state.font_assets)) { issues.push({ code: 'missing-font', message: '文本组件引用的字体不存在',