修改菜单

This commit is contained in:
Anyon 2020-09-26 00:12:24 +08:00
parent 62640a035a
commit 1f8cfd2743
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ class Auth extends Controller
* 绑定数据表 * 绑定数据表
* @var string * @var string
*/ */
public $table = 'SystemAuth'; private $table = 'SystemAuth';
/** /**
* 系统权限管理 * 系统权限管理

View File

@ -57,7 +57,7 @@ class Menu extends Controller
{ {
foreach ($data as &$vo) { foreach ($data as &$vo) {
if ($vo['url'] !== '#') { if ($vo['url'] !== '#') {
$vo['url'] = trim(sysuri($vo['url']) . (empty($vo['params']) ? '' : "?{$vo['params']}"), '/\\'); $vo['url'] = trim(url($vo['url'])->build() . (empty($vo['params']) ? '' : "?{$vo['params']}"), '/\\');
} }
$vo['ids'] = join(',', DataExtend::getArrSubIds($data, $vo['id'])); $vo['ids'] = join(',', DataExtend::getArrSubIds($data, $vo['id']));
} }