From b1782002cb97fe30bacef7bf635491383adbb58a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=99=E7=A0=81=E7=94=9F=E8=8A=B1?= <18523774412@qq.com> Date: Fri, 26 May 2023 11:10:17 +0800 Subject: [PATCH] =?UTF-8?q?perf:=E5=90=8E=E5=8F=B0=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E8=A7=84=E5=88=99=E7=BB=84=E4=BB=B6=E8=B7=AF=E5=BE=84=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E8=87=AA=E5=8A=A8=E8=BD=AC=E6=8D=A2=E5=88=86=E9=9A=94?= =?UTF-8?q?=E7=AC=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/model/MenuRule.php | 6 ++++++ 1 file changed, 6 insertions(+) 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