mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-22 15:24:09 +00:00
perf:后台菜单规则组件路径字段自动转换分隔符号
This commit is contained in:
parent
603b425558
commit
b1782002cb
@ -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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user