dever 7 years ago
parent
commit
397b4bec96
1 changed files with 9 additions and 0 deletions
  1. 9 0
      component/src/Version.php

+ 9 - 0
component/src/Version.php

@@ -44,6 +44,15 @@ class Version extends Core
 			$i = 0;
 			foreach ($tabbar as $k => $v) {
 				$tab[$i]['pagePath'] = $pageInfo[$v['page_id']]['pagepath'];
+				if ($i == 0) {
+					/*
+					$key = array_search($tab[$i]['pagePath'], $page);
+					if ($key && isset($page[$key])) {
+						unset($page[$key]);
+					}
+					*/
+					array_unshift($page, $tab[$i]['pagePath']);
+				}
 				$tab[$i]['text'] = $v['name'];
 				$tab[$i]['iconPath'] = $v['iconpath'];
 				$tab[$i]['selectedIconPath'] = $v['selectediconpath'];