You've already forked Nano-Banana-AI-Image-Editor
修复 首次生成结果不显示的问题;
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user