mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 03:36:05 +00:00
fix: login & register
This commit is contained in:
parent
613acb2652
commit
6c76d27cd3
@ -4,6 +4,7 @@ import { Page } from '@/components/pages';
|
||||
import ViewFactory from '@/components/views';
|
||||
import { Helmet, useModel } from 'umi';
|
||||
import get from 'lodash/get';
|
||||
import { Login } from '@/components/views/Form/Login';
|
||||
|
||||
export default (props: any) => {
|
||||
const { initialState = {}, refresh, setInitialState } = useModel('@@initialState');
|
||||
@ -13,11 +14,7 @@ export default (props: any) => {
|
||||
<Helmet>
|
||||
<title>{siteTitle ? `登录 - ${siteTitle}` : '登录'}</title>
|
||||
</Helmet>
|
||||
<ViewFactory
|
||||
{...props}
|
||||
viewName={'login'}
|
||||
resourceName={'users'}
|
||||
/>
|
||||
<Login {...props}/>
|
||||
</div>
|
||||
);
|
||||
};
|
@ -4,6 +4,7 @@ import { Page } from '@/components/pages';
|
||||
import ViewFactory from '@/components/views';
|
||||
import { Helmet, useModel } from 'umi';
|
||||
import get from 'lodash/get';
|
||||
import { Register } from '@/components/views/Form/Register';
|
||||
|
||||
export default (props: any) => {
|
||||
const { initialState = {}, refresh, setInitialState } = useModel('@@initialState');
|
||||
@ -13,11 +14,7 @@ export default (props: any) => {
|
||||
<Helmet>
|
||||
<title>{siteTitle ? `注册 - ${siteTitle}` : '注册'}</title>
|
||||
</Helmet>
|
||||
<ViewFactory
|
||||
{...props}
|
||||
viewName={'register'}
|
||||
resourceName={'users'}
|
||||
/>
|
||||
<Register {...props}/>
|
||||
</div>
|
||||
);
|
||||
};
|
Loading…
Reference in New Issue
Block a user