From afbe9d2770fd34347aa6ecbcb263fa3813a3e066 Mon Sep 17 00:00:00 2001 From: Karson Date: Sun, 13 May 2018 16:42:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=90=8E=E4=BB=A5=E8=B7=AF=E5=BE=84=E6=97=B6=E4=BA=8C?= =?UTF-8?q?=E7=BA=A7=E8=8F=9C=E5=8D=95=E4=B8=8B=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/library/Auth.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/admin/library/Auth.php b/application/admin/library/Auth.php index 997afcef..0524a353 100644 --- a/application/admin/library/Auth.php +++ b/application/admin/library/Auth.php @@ -401,9 +401,10 @@ class Auth extends \fast\Auth foreach ($topList as $index => $item) { $childList = Tree::instance()->getTreeMenu($item['id'], '
  • @title @caret @badge @childlist
  • ', $select_id, '', 'ul', 'class="treeview-menu"'); $current = in_array($item['id'], $selectParentIds); - $url = $childList ? 'javascript:;' : $item['url']; + $url = $childList ? 'javascript:;' : url($item['url']); + $addtabs = $childList || !$url ? "" : (stripos($url, "?") !== false ? "&" : "?") . "ref=addtabs"; $childList = str_replace('" pid="' . $item['id'] . '"', ' treeview ' . ($current ? '' : 'hidden') . '" pid="' . $item['id'] . '"', $childList); - $nav .= '
  • ' . $item['title'] . '
  • '; + $nav .= '
  • ' . $item['title'] . '
  • '; $menu .= $childList; } } else {