feat(图文处理): 优化图文缓存与导出处理
build.yaml / build (push) Successful in 52s

This commit is contained in:
xiaoqidun committed 2026-10-13 10:38:28 +08:00
1 parent 7df35ac122
commit 489db301c5
15 files changed
+304 -75

No files matched your search

+4 -1
View File
@@ -573,9 +573,12 @@ func (r *Renderer) writeCompressedImage(writer io.Writer, data []byte) error {
return err
}
// outputContext 获取仅用于输出的取消上下文
// outputContext 优先使用当前页面上下文,否则使用输出上下文
// 返回: context.Context 取消上下文
func (r *Renderer) outputContext() context.Context {
if r.pageContext != nil {
return r.pageContext
}
if r.OutputContext != nil {
return r.OutputContext
}