diff --git a/app/index/common.php b/app/index/common.php index b5bf5fd..88d72cb 100644 --- a/app/index/common.php +++ b/app/index/common.php @@ -937,14 +937,13 @@ function GetTopTypenameen($id = false) */ function is_active_nav($currCid = false, $cid = false) { - if (request()->action() == 'search') { + if (in_array(request()->action(),['search','tag','about']) ) { return false; } //首页 if (!$currCid && !$cid) { return true; } - //一般在首页中,要比对的栏目id会为false if ($cid == false) { return false; diff --git a/app/index/controller/Index.php b/app/index/controller/Index.php index 44b384c..4d3eda1 100644 --- a/app/index/controller/Index.php +++ b/app/index/controller/Index.php @@ -16,7 +16,6 @@ use app\Request; use think\db\exception\DataNotFoundException; use think\db\exception\DbException; use think\db\exception\ModelNotFoundException; -use think\facade\Filesystem; use think\facade\Log; /**