Create Index.php

This commit is contained in:
wolfcode
2023-11-07 11:10:05 +08:00
parent 4ff604023a
commit 67f0c4ce53

View File

@@ -0,0 +1,19 @@
<?php
namespace app\index\controller;
use app\BaseController;
use think\facade\Env;
use think\response\Redirect;
class Index extends BaseController
{
/**
* @return Redirect
*/
public function index(): Redirect
{
// 这是项目首页 系统默认跳转后台页面
return redirect('/' . Env::get('EASYADMIN.ADMIN', false));
}
}