feat(功能强化): 支持OFD网页外链点击跳转
build.yaml / build (push) Successful in 38s

This commit is contained in:
xiaoqidun committed 2026-09-12 20:17:15 +08:00
1 parent 299c2cbfdc
commit 8ddc2fdeed
7 files changed
+192 -109

No files matched your search

+11
View File
@@ -160,6 +160,16 @@ func renderPage(args []js.Value) (any, error) {
if err != nil {
return nil, err
}
links := make([]any, len(page.Links))
for i, link := range page.Links {
links[i] = map[string]any{
"uri": link.URI,
"x": link.Box.X,
"y": link.Box.Y,
"width": link.Box.W,
"height": link.Box.H,
}
}
return successResult(map[string]any{
"index": page.Index,
"number": page.Number,
@@ -167,6 +177,7 @@ func renderPage(args []js.Value) (any, error) {
"width": page.Width,
"height": page.Height,
"svg": page.SVG,
"links": links,
}), nil
}