fix: get the siteTitle value from the server

This commit is contained in:
chenos 2021-05-07 10:51:07 +08:00
parent 7f6dc49227
commit 91d633deed
5 changed files with 5 additions and 5 deletions

View File

@ -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(
() =>

View File

@ -38,7 +38,7 @@ export function Login(props: any) {
return (
<div className={'users-form'}>
<h1>{title || 'NocoBase'}</h1>
<h1>{title}</h1>
<h2></h2>
<SchemaForm

View File

@ -38,7 +38,7 @@ export function LostPassword(props: any) {
return (
<div className={'users-form'}>
<h1>{title || 'NocoBase'}</h1>
<h1>{title}</h1>
<h2></h2>
<SchemaForm
onSubmit={async values => {

View File

@ -64,7 +64,7 @@ export function Register(props: any) {
return (
<div className={'users-form'}>
<h1>{title || 'NocoBase'}</h1>
<h1>{title}</h1>
<h2></h2>
<SchemaForm
effects={() => {

View File

@ -80,7 +80,7 @@ export function ResetPassword(props: any) {
return (
<div className={'users-form'}>
<h1>{title || 'NocoBase'}</h1>
<h1>{title}</h1>
<h2></h2>
<SchemaForm
effects={() => {