From cb8db176366f620f48636552b3a6a258e94bc28f Mon Sep 17 00:00:00 2001 From: sunhao Date: Thu, 31 Jul 2025 17:25:45 +0800 Subject: [PATCH] * [bug #64382] support exporting single api to word. --- lib/zin/wg/docapp/js/v1.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/zin/wg/docapp/js/v1.js b/lib/zin/wg/docapp/js/v1.js index 7ffc563a35..ffe1233fd7 100644 --- a/lib/zin/wg/docapp/js/v1.js +++ b/lib/zin/wg/docapp/js/v1.js @@ -1582,6 +1582,11 @@ const commands = const docID = args[3] || docApp.docID; const url = $.createLink('api', 'export', `libID=${libID}&version=0&release=${release}&moduleID=${moduleID}${docID ? `&apiID=${docID}` : ''}`); + if(docID) + { + window.open(url, '_self'); + return; + } zui.Modal.open({url: url, size: 'sm'}); }, importFile: function(info, args)