* [misc] fix code error.

This commit is contained in:
sunguangming
2025-08-06 15:22:16 +08:00
committed by tianshujie
parent 6a2e14445d
commit 6ec9deacb1
+1 -1
View File
@@ -1101,7 +1101,7 @@ class baseControl
global $lang;
$moduleName = $this->app->rawModule;
$notSameTab = isset($lang->navGroup->{$moduleName}) && $lang->navGroup->{$moduleName} != $this->app->tab;
$hasLocate = isset($data['locate']) && $data['locate'][0] == '/';
$hasLocate = !empty($data['locate']) && $data['locate'][0] == '/';
if($notSameTab && $hasLocate && !helper::inOnlyBodyMode())
{
$data['locate'] .= "#app={$this->app->tab}";