mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Index.php
This commit is contained in:
parent
4b5c6d3316
commit
1252dafa8a
@ -38,9 +38,9 @@ class Index extends Controller
|
||||
public function index()
|
||||
{
|
||||
$this->title = '系统管理后台';
|
||||
$auth = AdminService::instance()->apply(true);
|
||||
$login = AdminService::instance()->apply(true)->isLogin();
|
||||
$this->menus = MenuService::instance()->getTree();
|
||||
if (empty($this->menus) && !$auth->isLogin()) {
|
||||
if (empty($this->menus) && empty($login)) {
|
||||
$this->redirect(url('@admin/login'));
|
||||
} else {
|
||||
$this->fetch();
|
||||
|
Loading…
x
Reference in New Issue
Block a user