From eb0a2c3906d3e833d0d02b711d33bc45d5b96c69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=AB=E9=B1=BC=E8=B1=86=E8=85=90?= Date: Thu, 5 Sep 2024 09:51:25 +0800 Subject: [PATCH] feat(client): display system title when logo is missing (#5175) * fix(client): no logo show title * fix(client): font size using token * fix(client): update font size * style: optimize style --------- Co-authored-by: Zeke Zhang <958414905@qq.com> --- .../route-switch/antd/admin-layout/index.tsx | 36 ++++++++++++++----- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/packages/core/client/src/route-switch/antd/admin-layout/index.tsx b/packages/core/client/src/route-switch/antd/admin-layout/index.tsx index a81d461af6..2557af79b6 100644 --- a/packages/core/client/src/route-switch/antd/admin-layout/index.tsx +++ b/packages/core/client/src/route-switch/antd/admin-layout/index.tsx @@ -429,15 +429,33 @@ export const InternalAdminLayout = () => { align-items: center; `} > - + {result?.data?.data?.logo?.url ? ( + + ) : ( + + {result?.data?.data?.title} + + )}