Merge branch 'v4.7.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v4.7.0dev

This commit is contained in:
吴昊天 2023-02-21 10:28:03 +08:00
commit b2da22f5df
3 changed files with 6 additions and 2 deletions

View File

@ -346,6 +346,7 @@ class Common extends AuthController
$pid = $item->getData('pid');
$data[$key] = json_decode($item, true);
$data[$key]['pid'] = $pid;
$data[$key]['menu_path'] = '/' . config('app.admin_prefix', 'admin') . $item['menu_path'];
if (in_array($item->id, $counts)) {
$data[$key]['type'] = 1;
} else {

View File

@ -51,8 +51,11 @@ class SystemMenusServices extends BaseServices
{
$data = [];
foreach ($menusList as $item) {
$data[] = $item->getData();
$item = $item->getData();
$item['menu_path'] = '/' . config('app.admin_prefix', 'admin') . $item['menu_path'];
$data[] = $item;
}
return $data;
}

View File

@ -47,5 +47,5 @@ return [
// 没有开启消息队列命令或者定时任务命令的提醒开关
'console_remind' => true,
// admin路由前缀
'admin_prefix' => 'administration',
'admin_prefix' => 'admin',
];