mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 10:32:48 +08:00
新增手机端浏览模式
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace base\admin\model;
|
||||
|
||||
use app\admin\model\SystemMenu;
|
||||
use app\common\constants\MenuConstant;
|
||||
use app\common\model\TimeModel;
|
||||
|
||||
@@ -9,6 +10,11 @@ class SystemMenuBase extends TimeModel
|
||||
{
|
||||
protected $deleteTime = 'delete_time';
|
||||
|
||||
public function children()
|
||||
{
|
||||
return $this->hasMany(SystemMenu::class, 'pid', 'id');
|
||||
}
|
||||
|
||||
public function getPidMenuList()
|
||||
{
|
||||
$list = $this->field('id,pid,title')
|
||||
|
||||
Reference in New Issue
Block a user