修复 首次生成结果不显示的问题;

This commit is contained in:
2025-09-14 06:21:49 +08:00
parent a99e7d542a
commit 92a78abd63
2 changed files with 10 additions and 14 deletions

View File

@@ -53,19 +53,6 @@ export const useImageGeneration = () => {
addGeneration(generation);
setCanvasImage(outputAssets[0].url);
// 如果没有项目则创建项目
if (!currentProject) {
const newProject = {
id: generateId(),
title: '未命名项目',
generations: [generation],
edits: [],
createdAt: Date.now(),
updatedAt: Date.now()
};
setCurrentProject(newProject);
}
}
setIsGenerating(false);
},