From 7f6dc492275cb8202a6ebbd00d13c965b7a86e77 Mon Sep 17 00:00:00 2001 From: chenos Date: Fri, 7 May 2021 10:46:49 +0800 Subject: [PATCH] fix: logo url get from the server --- packages/app/src/components/pages/TopMenuLayout/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/app/src/components/pages/TopMenuLayout/index.tsx b/packages/app/src/components/pages/TopMenuLayout/index.tsx index 25f8c0352..9910e9186 100644 --- a/packages/app/src/components/pages/TopMenuLayout/index.tsx +++ b/packages/app/src/components/pages/TopMenuLayout/index.tsx @@ -5,7 +5,6 @@ import { history, Link, request, useModel } from 'umi'; import { UserOutlined, CodeOutlined, MenuOutlined } from '@ant-design/icons'; import AvatarDropdown from '@/components/pages/AvatarDropdown'; import Menu from '@/components/menu'; -import { ReactComponent as Logo } from './logo-white.svg'; import { useResponsive, useLocalStorageState } from 'ahooks'; import get from 'lodash/get'; @@ -35,7 +34,7 @@ export function TopMenuLayout(props: any) { className="nb-header" >
- {!logoUrl ? : } + {logoUrl && }
{!isMobile && (