开始演示用例页面

This commit is contained in:
augushong
2024-07-07 23:29:23 +08:00
parent 50b478d6c6
commit 575d432982
5 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace base\common\event\AdminMenuTab;
use think\facade\Env;
use think\facade\View;
class DemoEventBase
{
public function handle()
{
$content = '';
if (Env::get('adminsystem.is_demo', false)) {
$content = View::layout(false)->fetch('index/ext/admin_menu_tab_demo');
}
// 事件监听处理
return [
'view_content' => $content,
];
}
}