This commit is contained in:
sunguangming
2023-07-24 15:31:53 +08:00
parent 37134d5abd
commit 8c97fd7b62
6 changed files with 126 additions and 15 deletions
+9 -1
View File
@@ -235,7 +235,8 @@ panel
(!$isRelease && common::hasPriv('api', 'delete')) ? btn
(
set::url(createLink('api', 'delete', "apiID=$api->id")),
setClass('btn ghost'),
setClass('btn ghost ajax-submit'),
set('data-confirm', $lang->api->confirmDelete),
icon('trash'),
) : null,
btn
@@ -251,6 +252,7 @@ panel
div
(
set::Class('panel-body'),
set::id('content'),
h2($api->title),
div(setClass('desc'), $api->desc),
$apiHeader,
@@ -263,3 +265,9 @@ panel
$api->responseExample ? html("<pre><code>" . $api->responseExample . "</code></pre>") : null,
)
);
panel
(
set::id('history'),
setClass('hidden'),
history()
);