From 91d633deed1814b96091d5f816fa97805af64ea4 Mon Sep 17 00:00:00 2001 From: chenos Date: Fri, 7 May 2021 10:51:07 +0800 Subject: [PATCH] fix: get the siteTitle value from the server --- packages/app/src/components/pages/Page/index.tsx | 2 +- packages/app/src/components/views/Login.tsx | 2 +- packages/app/src/components/views/LostPassword.tsx | 2 +- packages/app/src/components/views/Register.tsx | 2 +- packages/app/src/components/views/ResetPassword.tsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/app/src/components/pages/Page/index.tsx b/packages/app/src/components/pages/Page/index.tsx index aae9e5d74..8caf6b567 100644 --- a/packages/app/src/components/pages/Page/index.tsx +++ b/packages/app/src/components/pages/Page/index.tsx @@ -14,7 +14,7 @@ export function Page(props: any) { const { initialState = {}, refresh, setInitialState } = useModel( '@@initialState', ); - const siteTitle = get(initialState, 'systemSettings.title') || 'NocoBase'; + const siteTitle = get(initialState, 'systemSettings.title'); const { data = {}, loading, error } = useRequest( () => diff --git a/packages/app/src/components/views/Login.tsx b/packages/app/src/components/views/Login.tsx index 3599e45ba..ea50d5178 100644 --- a/packages/app/src/components/views/Login.tsx +++ b/packages/app/src/components/views/Login.tsx @@ -38,7 +38,7 @@ export function Login(props: any) { return (
-

{title || 'NocoBase'}

+

{title}

登录

-

{title || 'NocoBase'}

+

{title}

忘记密码

{ diff --git a/packages/app/src/components/views/Register.tsx b/packages/app/src/components/views/Register.tsx index f757ddd60..3b79d9c99 100644 --- a/packages/app/src/components/views/Register.tsx +++ b/packages/app/src/components/views/Register.tsx @@ -64,7 +64,7 @@ export function Register(props: any) { return (
-

{title || 'NocoBase'}

+

{title}

注册

{ diff --git a/packages/app/src/components/views/ResetPassword.tsx b/packages/app/src/components/views/ResetPassword.tsx index 85d15c735..12247071f 100644 --- a/packages/app/src/components/views/ResetPassword.tsx +++ b/packages/app/src/components/views/ResetPassword.tsx @@ -80,7 +80,7 @@ export function ResetPassword(props: any) { return (
-

{title || 'NocoBase'}

+

{title}

重置密码

{