diff --git a/apps/ai-game-creator-shell/src/features/ui-editor/uiDesignResourceBridge.ts b/apps/ai-game-creator-shell/src/features/ui-editor/uiDesignResourceBridge.ts index 358af30c9..2d4078959 100644 --- a/apps/ai-game-creator-shell/src/features/ui-editor/uiDesignResourceBridge.ts +++ b/apps/ai-game-creator-shell/src/features/ui-editor/uiDesignResourceBridge.ts @@ -3,6 +3,7 @@ import type { GameCreationAppManifest, } from '../../../../../packages/shared/src/contracts/gameCreationApp'; import { + GAME_CREATION_APP_UI_DESIGN_ASSET_KIND, GAME_CREATION_APP_UI_DESIGN_DOC_ASSET_KIND, GAME_CREATION_APP_UI_DESIGN_DOC_MEDIA_TYPE, } from '../../../../../packages/shared/src/contracts/gameCreationApp'; @@ -93,7 +94,7 @@ export async function ensureUiDesignResourceForPrototype({ parseGameCreationAppAssetKind( prototype.kind, 'ui-design-resource-bridge.prototype', - ) !== 'ui-design' + ) !== GAME_CREATION_APP_UI_DESIGN_ASSET_KIND ) { throw new Error('目标资源不是 UI 原型图片'); }