diff --git a/app/admin/model/MenuRule.php b/app/admin/model/MenuRule.php index 6ab475a7..310f44a1 100644 --- a/app/admin/model/MenuRule.php +++ b/app/admin/model/MenuRule.php @@ -15,4 +15,10 @@ class MenuRule extends Model protected $createTime = 'createtime'; protected $updateTime = 'updatetime'; + public function setComponentAttr($value) + { + if ($value) $value = str_replace('\\', '/', $value); + return $value; + } + } \ No newline at end of file