feat(加强兼容): 支持多文档
build.yaml / build (push) Successful in 44s

This commit is contained in:
xiaoqidun committed 2026-10-03 13:42:29 +08:00
1 parent 8de701dbd4
commit d37f41cd90
21 files changed
+280 -57

No files matched your search

+1 -1
View File
@@ -140,7 +140,7 @@ func (e *Editor) PasteAnnotations(page int, selection *AnnotationSelection, dx,
edit.source.annotationStates = states
if len(selection.resources) != 0 {
reader := edit.source.reader
name := cleanPackagePath(reader.OFD.DocBody[0].DocRoot)
name := cleanPackagePath(reader.OFD.DocBody[reader.documentIndex].DocRoot)
data, err := reader.readFile(name)
if err != nil {
return err