From 8f15eb15e67ffecf6812e9d81b661f77b1f975cd Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 21 Apr 2023 08:55:51 +0800 Subject: [PATCH 1/3] * Fixed the interface details page skip problem. --- module/doc/view/lefttree.html.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/doc/view/lefttree.html.php b/module/doc/view/lefttree.html.php index 77de88c63d..6a7a5488ac 100644 --- a/module/doc/view/lefttree.html.php +++ b/module/doc/view/lefttree.html.php @@ -472,6 +472,7 @@ $(function() if(!libID) libID = 0; if(!moduleID) moduleID = 0; linkParams = linkParams.replace('%s', 'libID=' + libID + '&moduleID=' + moduleID); + if(config.currentModule == 'api' && config.currentMethod == 'view') spaceType = 'api'; if(spaceType != 'api' && config.currentModule == 'api') linkParams = 'objectID=' + objectID + '&' + linkParams; var moduleName = spaceType == 'api' ? 'api' : 'doc'; var methodName = ''; From e2c553cf024c3bfe4419c17520c1b3425c9b06c8 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 21 Apr 2023 09:00:22 +0800 Subject: [PATCH 2/3] * Modify the Create Document button. --- module/doc/model.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/module/doc/model.php b/module/doc/model.php index b883982350..3849255b5f 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -3206,12 +3206,13 @@ class docModel extends model { if(!common::hasPriv('doc', 'create') or !isset($lib->id)) return null; - $objectID = zget($lib, $lib->type, 0); - $class = $from == 'list' ? 'btn-info' : 'btn-primary'; - $html = "