MCPcopy Create free account
hub / github.com/HisMax/RedInk / startGeneration

Function startGeneration

frontend/src/stores/generator.ts:291–302  ·  view source on GitHub ↗

* 开始图片生成流程 * 初始化进度状态和图片列表

()

Source from the content-addressed store, hash-verified

289 * 初始化进度状态和图片列表
290 */
291 startGeneration() {
292 this.stage = 'generating'
293 this.progress.current = 0
294 this.progress.total = this.outline.pages.length
295 this.progress.status = 'generating'
296 // 为每个页面创建对应的图片占位对象
297 this.images = this.outline.pages.map(page => ({
298 index: page.index,
299 url: '',
300 status: 'generating'
301 }))
302 },
303
304 /**
305 * 更新图片生成进度

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected