* [bug #60091] fix api item show duplicated in sidebar of doc app.

This commit is contained in:
sunhao
2025-03-04 21:37:16 +08:00
committed by 曹延义
parent f17dbefeb2
commit a91045bfcb
3 changed files with 10 additions and 1 deletions
+8
View File
@@ -105,5 +105,13 @@ docApp
set::pager(array('recTotal' => $recTotal, 'recPerPage' => $recPerPage, 'page' => $pageID)),
set::privs($privs),
set::showLibFiles($privs['showFiles'] ? array('product', 'project', 'execution') : false),
set::formatDataItem
(
jsCallback('type', 'item')
->beginIf('type === "doc"', 'item.api', 'typeof item.id === "number"')
->do('item.id = `api.${item.id}`')
->endIf()
->do('return item')
),
set('$options', jsRaw('window.setDocAppOptions'))
);