Przeglądaj źródła

菜单导航一级分类图片显示优化

fogwind 20 godzin temu
rodzic
commit
2bf068b74d
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      src/components/layout/navbar/MobileMenu.tsx

+ 2 - 0
src/components/layout/navbar/MobileMenu.tsx

@@ -191,6 +191,7 @@ export default function MobileMenu({ menu, isOpen, onClose,isGuest }: MobileMenu
           
                  <main className="flex-1 overflow-y-auto p-3 pr-4">
                    {/*顶部横幅占位 */}
+                   {activeMainMenu?.wapImage && 
                    <div className="w-full  bg-gray-100 mb-4 flex items-end">
                      {/* <span className="text-3xl text-white pl-6 pb-4">Shop By Feature</span> */}
                       <Image
@@ -201,6 +202,7 @@ export default function MobileMenu({ menu, isOpen, onClose,isGuest }: MobileMenu
                          height={37}
                        />
                    </div>
+                    }
                  
                    {subMenuList.length === 0 ? (
                      <div className="text-gray-500 text-xl">No sub categories</div>