feat(原生桌面): 优化原生页面与资源加载
build.yaml / build (push) Successful in 47s

This commit is contained in:
xiaoqidun committed 2026-10-19 18:57:56 +08:00
1 parent ea55e997ee
commit 83d936e9f8
8 files changed
+357 -41

No files matched your search

+5 -1
View File
@@ -1012,7 +1012,11 @@ func (s *Session) pageContent(index int) (*ofdgo.PageContent, error) {
return page, nil
}
clear(s.pageCache)
page, err := s.Reader.PageContentByIndex(index)
ctx := s.Renderer.OutputContext
if ctx == nil {
ctx = context.Background()
}
page, err := s.Reader.PageContentByIndexContext(ctx, index)
if err != nil {
return nil, err
}