新增手机端浏览模式

This commit is contained in:
2023-09-27 16:32:38 +08:00
parent c77257730c
commit 4356de36b3
11 changed files with 310 additions and 28 deletions

View File

@@ -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')