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

Function syncRawFromPages

frontend/src/stores/generator.ts:210–214  ·  view source on GitHub ↗

* 根据 pages 数组重新生成 raw 文本 * 用于保持 raw 和 pages 的数据同步

()

Source from the content-addressed store, hash-verified

208 * 用于保持 raw 和 pages 的数据同步
209 */
210 syncRawFromPages() {
211 this.outline.raw = this.outline.pages
212 .map(page => page.content)
213 .join('\n\n<page>\n\n')
214 },
215
216 /**
217 * 删除指定索引的页面

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected