移除管理员首页
*无用页面
This commit is contained in:
parent
e0a6fb0320
commit
81ad56139e
@ -46,7 +46,7 @@ class AdminController extends Controller
|
||||
'rules' => [
|
||||
[
|
||||
'allow' => true,
|
||||
'actions' => ['index', 'system', 'user', 'info', 'user-view', 'user-create', 'user-update',
|
||||
'actions' => ['system', 'user', 'info', 'user-view', 'user-create', 'user-update',
|
||||
'user-delete', 'user-totpoff', 'user-pwdreset', 'login-log', 'access-log', 'collection-up-log',
|
||||
'share-manage', 'share-manage-view', 'share-manage-delete', 'collection-manage', 'collection-manage-view',
|
||||
'collection-manage-delete', 'notice-manage', 'sysinfo', 'get-sysinfo', 'ticket-manage', 'ticket-view', 'ticket-delete', 'ticket-reply'],
|
||||
@ -57,7 +57,6 @@ class AdminController extends Controller
|
||||
'verbs' => [
|
||||
'class' => VerbFilter::class,
|
||||
'actions' => [
|
||||
'index' => ['GET'],
|
||||
'system' => ['GET', 'POST'],
|
||||
'user' => ['GET'],
|
||||
'user-view' => ['GET', 'POST'],
|
||||
@ -95,14 +94,6 @@ class AdminController extends Controller
|
||||
$this->layout = 'admin_main';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function actionIndex(): string
|
||||
{
|
||||
return $this->render('index');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|Response
|
||||
* @throws HttpException
|
||||
|
@ -72,7 +72,6 @@ $this->registerCssFile('@web/css/fuckyou-navpadding.css');
|
||||
'options' => ['class' => 'navbar-nav'],
|
||||
'items' => [
|
||||
['label' => '首页', 'url' => ['/site/index']],
|
||||
['label' => '面板', 'url' => ['/admin/index']], // 未完工
|
||||
['label' => '管理', 'items' => [
|
||||
['label' => '用户管理', 'url' => ['/admin/user']],
|
||||
['label' => '文件分享管理', 'url' => ['/admin/share-manage']],
|
||||
|
@ -70,7 +70,7 @@ $darkMode = Yii::$app->user->isGuest ? 0 : Yii::$app->user->identity->dark_mode;
|
||||
echo Nav::widget([
|
||||
'options' => ['class' => 'navbar-nav'],
|
||||
'items' => [
|
||||
['label' => '首页', 'url' => ['/site/index']],
|
||||
['label' => '仪表盘', 'url' => ['/site/index']],
|
||||
['label' => '我的文件', 'url' => ['/home/index']],
|
||||
['label' => '文件保险箱', 'url' => ['/vault/index']],
|
||||
['label' => '分享管理', 'url' => ['/share/index']],
|
||||
|
Loading…
Reference in New Issue
Block a user