fix: get the siteTitle value from the server
This commit is contained in:
parent
7f6dc49227
commit
91d633deed
@ -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(
|
||||
() =>
|
||||
|
@ -38,7 +38,7 @@ export function Login(props: any) {
|
||||
|
||||
return (
|
||||
<div className={'users-form'}>
|
||||
<h1>{title || 'NocoBase'}</h1>
|
||||
<h1>{title}</h1>
|
||||
<h2>登录</h2>
|
||||
|
||||
<SchemaForm
|
||||
|
@ -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 => {
|
||||
|
@ -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={() => {
|
||||
|
@ -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={() => {
|
||||
|
Loading…
Reference in New Issue
Block a user