From fb83f8192d768c5f290f7a18c1a7ad9dd6392ed0 Mon Sep 17 00:00:00 2001 From: yin5th <541304803@qq.com> Date: Sat, 5 Nov 2022 23:41:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E8=88=AA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/public/menu.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/view/public/menu.html b/view/public/menu.html index 265f1ee..cdf3aa9 100755 --- a/view/public/menu.html +++ b/view/public/menu.html @@ -14,7 +14,8 @@ $bg_mobile = $firstCategory['bg_mobile']; $bgImg = $isMobile? $bg_mobile : $bg_pc; $bgImg = trim($bgImg); -$bgImg = $bgImg ?: '/static/web/images/public/header-bg.jpg'; +$defaultBg = request()->controller() == 'Index' ? '' : '/static/web/images/public/header-bg.jpg'; +$bgImg = $bgImg ?: $defaultBg; {/php}