Update Menu.php

This commit is contained in:
Anyon 2019-11-25 11:13:09 +08:00
parent 2850818e29
commit 331b1aad1a

View File

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