* heading widget: remove unnecessary code.

This commit is contained in:
liugang
2023-11-07 17:04:46 +08:00
parent 8fb6642b97
commit 2ca74357fa
+2 -2
View File
@@ -62,9 +62,9 @@ class heading extends wg
$moduleName = $app->rawModule;
$methodName = $app->rawMethod;
if(in_array("$moduleName-$methodName", is_array($config->excludeDropmenuList) ? $config->excludeDropmenuList : array())) return null;
if(in_array("$moduleName-$methodName", $config->excludeDropmenuList)) return null;
if(in_array($app->tab, is_array($config->hasDropmenuApps) ? $config->hasDropmenuApps : array()))
if(in_array($app->tab, $config->hasDropmenuApps))
{
$module = $app->tab;
if($app->tab == 'qa') $module = 'product';