From f7e3ddd134adae1a5fc9ab39ce20ed42f71f9a3c Mon Sep 17 00:00:00 2001 From: wangzemei Date: Fri, 26 Apr 2024 13:14:53 +0800 Subject: [PATCH] * zin: modify the text of thinknodemenu wg. --- lib/zin/wg/thinknodemenu/v1.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/zin/wg/thinknodemenu/v1.php b/lib/zin/wg/thinknodemenu/v1.php index d37b5fce9b..177abee82a 100644 --- a/lib/zin/wg/thinknodemenu/v1.php +++ b/lib/zin/wg/thinknodemenu/v1.php @@ -35,16 +35,15 @@ class thinkNodeMenu extends wg { if(!is_object($setting)) continue; - $itemID = $setting->id ? $setting->id : $parentID; $item = array( - 'key' => $itemID, - 'text' => $setting->name, - 'hint' => $setting->name, + 'key' => $setting->id, + 'text' => $setting->title, + 'hint' => $setting->title, 'url' => $setting->url, - 'data-id' => $itemID, + 'data-id' => $setting->id, 'data-type' => $setting->type, 'data-parent' => $setting->parent, - 'selected' => $itemID == $activeKey, + 'selected' => $setting->id == $activeKey, 'actions' => $this->getActions($setting), 'data-wizard' => $setting->wizard, ); @@ -52,7 +51,7 @@ class thinkNodeMenu extends wg $children = zget($setting, 'children', array()); if(!empty($children)) { - $children = $this->buildMenuTree($children, $itemID); + $children = $this->buildMenuTree($children, $setting->id); $item['items'] = $children; }