From d3f6a8e75bfedff3c59f092003e832ae27656e7a Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Thu, 20 Apr 2023 15:00:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/model/system/SystemRouteCate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crmeb/app/model/system/SystemRouteCate.php b/crmeb/app/model/system/SystemRouteCate.php index 354960a74..e3bab38f3 100644 --- a/crmeb/app/model/system/SystemRouteCate.php +++ b/crmeb/app/model/system/SystemRouteCate.php @@ -39,6 +39,6 @@ class SystemRouteCate extends BaseModel */ public function children() { - return $this->hasMany(SystemRoute::class, 'cate_id', 'id')->field(['id', 'cate_id', 'name', 'path', 'method'])->order('add_time desc'); + return $this->hasMany(SystemRoute::class, 'cate_id', 'id')->field(['id', 'cate_id', 'name', 'name as real_name', 'path', 'method'])->order('add_time desc'); } }