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(
|
const { initialState = {}, refresh, setInitialState } = useModel(
|
||||||
'@@initialState',
|
'@@initialState',
|
||||||
);
|
);
|
||||||
const siteTitle = get(initialState, 'systemSettings.title') || 'NocoBase';
|
const siteTitle = get(initialState, 'systemSettings.title');
|
||||||
|
|
||||||
const { data = {}, loading, error } = useRequest(
|
const { data = {}, loading, error } = useRequest(
|
||||||
() =>
|
() =>
|
||||||
|
@ -38,7 +38,7 @@ export function Login(props: any) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={'users-form'}>
|
<div className={'users-form'}>
|
||||||
<h1>{title || 'NocoBase'}</h1>
|
<h1>{title}</h1>
|
||||||
<h2>登录</h2>
|
<h2>登录</h2>
|
||||||
|
|
||||||
<SchemaForm
|
<SchemaForm
|
||||||
|
@ -38,7 +38,7 @@ export function LostPassword(props: any) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={'users-form'}>
|
<div className={'users-form'}>
|
||||||
<h1>{title || 'NocoBase'}</h1>
|
<h1>{title}</h1>
|
||||||
<h2>忘记密码</h2>
|
<h2>忘记密码</h2>
|
||||||
<SchemaForm
|
<SchemaForm
|
||||||
onSubmit={async values => {
|
onSubmit={async values => {
|
||||||
|
@ -64,7 +64,7 @@ export function Register(props: any) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={'users-form'}>
|
<div className={'users-form'}>
|
||||||
<h1>{title || 'NocoBase'}</h1>
|
<h1>{title}</h1>
|
||||||
<h2>注册</h2>
|
<h2>注册</h2>
|
||||||
<SchemaForm
|
<SchemaForm
|
||||||
effects={() => {
|
effects={() => {
|
||||||
|
@ -80,7 +80,7 @@ export function ResetPassword(props: any) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={'users-form'}>
|
<div className={'users-form'}>
|
||||||
<h1>{title || 'NocoBase'}</h1>
|
<h1>{title}</h1>
|
||||||
<h2>重置密码</h2>
|
<h2>重置密码</h2>
|
||||||
<SchemaForm
|
<SchemaForm
|
||||||
effects={() => {
|
effects={() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user