<?php
declare(strict_types=1);

/**
 * 后台框架首页（左侧菜单 + 多标签 + iframe 内容区）
 */
class indexAction extends Action
{
    public function index()
    {
        $siteConfig = require Mvc::$cfg['projectDir'] . '/config/admin.php';

        View::set([
            'pageTitle' => lg('系统管理'),
            'menu'      => $siteConfig['menu'] ?? [],
            'username'  => Auth::user()['admin_username'] ?? '',
        ]);
        View::put();
    }
}
