diff --git a/lib/zin/wg/docapp/js/v1.js b/lib/zin/wg/docapp/js/v1.js index e4f3b626da..b609188a16 100644 --- a/lib/zin/wg/docapp/js/v1.js +++ b/lib/zin/wg/docapp/js/v1.js @@ -1048,6 +1048,16 @@ const commands = }); }, + /** + * 选择 API 文档。 + * Select the specified API doc. + */ + selectApi: function(_, args) + { + const apiID = args[0]; + console.log('> selectApi', apiID, `api.${getApiID(apiID)}`); + getDocApp().selectDoc(`api.${getApiID(apiID)}`); + }, /** * 显示结构列表。 @@ -1078,6 +1088,21 @@ const commands = listType: 'releases', }); }, + + /** + * 显示API 目录。 + * Show the api catalog. + */ + showModules: function() + { + getDocApp().changeState( + { + mode: 'list', + moduleID: 0, + docID: 0, + listType: '', + }); + }, /** * 加载懒加载内容。 * Load the lazy content.