AI创作批量生成任务 main V1 init

This commit is contained in:
2026-07-15 13:03:13 +08:00
parent 5b937f652b
commit 51f9deecde
59 changed files with 8091 additions and 413 deletions
+5
View File
@@ -18,6 +18,7 @@ interface AppState {
// 生成配置状态 - 页面跳转时保留,刷新时重置
mediaType: string;
countType: string;
generationCount: number;
selectedRatio: string;
selectedResolution: string;
width: number;
@@ -46,6 +47,7 @@ interface AppState {
// 生成配置状态更新方法
setMediaType: (mediaType: string) => void;
setCountType: (countType: string) => void;
setGenerationCount: (generationCount: number) => void;
setImageSettings: (ratio: string, resolution: string, width: number, height: number) => void;
setVideoSettings: (duration: number, aspectRatio: string, resolution: string) => void;
setEngineOptions: (options: { ratios: string[]; resolutions: string[]; durations: number[] }) => void;
@@ -71,6 +73,7 @@ export const useAppStore = create<AppState>((set, get) => ({
// 生成配置状态初始值
mediaType: 'video',
countType: '请选择',
generationCount: 1,
selectedRatio: '1:1',
selectedResolution: '2K',
width: 2048,
@@ -160,6 +163,7 @@ export const useAppStore = create<AppState>((set, get) => ({
// 生成配置状态更新方法
setMediaType: (mediaType) => set({ mediaType }),
setCountType: (countType) => set({ countType }),
setGenerationCount: (generationCount) => set({ generationCount }),
setImageSettings: (ratio, resolution, width, height) =>
set({ selectedRatio: ratio, selectedResolution: resolution, width, height }),
setVideoSettings: (duration, aspectRatio, resolution) =>
@@ -179,6 +183,7 @@ export const useAppStore = create<AppState>((set, get) => ({
resetGenerationConfig: () => set({
mediaType: 'image',
countType: '请选择',
generationCount: 1,
selectedRatio: '1:1',
selectedResolution: '2K',
width: 2048,