修复主题样式

This commit is contained in:
yumo 2023-10-22 22:16:38 +08:00
parent a4d1cc7231
commit 7cb03187a9
2 changed files with 1 additions and 3 deletions

View File

@ -937,14 +937,13 @@ function GetTopTypenameen($id = false)
*/ */
function is_active_nav($currCid = false, $cid = false) function is_active_nav($currCid = false, $cid = false)
{ {
if (request()->action() == 'search') { if (in_array(request()->action(),['search','tag','about']) ) {
return false; return false;
} }
//首页 //首页
if (!$currCid && !$cid) { if (!$currCid && !$cid) {
return true; return true;
} }
//一般在首页中要比对的栏目id会为false //一般在首页中要比对的栏目id会为false
if ($cid == false) { if ($cid == false) {
return false; return false;

View File

@ -16,7 +16,6 @@ use app\Request;
use think\db\exception\DataNotFoundException; use think\db\exception\DataNotFoundException;
use think\db\exception\DbException; use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException; use think\db\exception\ModelNotFoundException;
use think\facade\Filesystem;
use think\facade\Log; use think\facade\Log;
/** /**