perf:后台菜单规则组件路径字段自动转换分隔符号

This commit is contained in:
妙码生花 2023-05-26 11:10:17 +08:00
parent 603b425558
commit b1782002cb

View File

@ -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;
}
}