fix(client): request collections after login

This commit is contained in:
chenos 2022-03-09 11:21:11 +08:00
parent 36ae278302
commit 9175ddc90e
2 changed files with 8 additions and 5 deletions

View File

@ -13,7 +13,7 @@ import {
i18n, i18n,
MenuItemInitializers, MenuItemInitializers,
PluginManagerProvider, PluginManagerProvider,
RemoteCollectionManagerProvider, // RemoteCollectionManagerProvider,
RouteSchemaComponent, RouteSchemaComponent,
RouteSwitch, RouteSwitch,
RouteSwitchProvider, RouteSwitchProvider,
@ -63,7 +63,7 @@ const providers = [
}, },
], ],
[SchemaComponentProvider, { components: { Link, NavLink } }], [SchemaComponentProvider, { components: { Link, NavLink } }],
RemoteCollectionManagerProvider, // RemoteCollectionManagerProvider,
[SchemaInitializerProvider, { initializers: { MenuItemInitializers } }], [SchemaInitializerProvider, { initializers: { MenuItemInitializers } }],
AntdSchemaComponentProvider, AntdSchemaComponentProvider,
ChinaRegionProvider, ChinaRegionProvider,

View File

@ -8,6 +8,7 @@ import {
findByUid, findByUid,
findMenuItem, findMenuItem,
PluginManager, PluginManager,
RemoteCollectionManagerProvider,
RemoteSchemaComponent, RemoteSchemaComponent,
useDocumentTitle, useDocumentTitle,
useRoute, useRoute,
@ -100,9 +101,11 @@ const InternalAdminLayout = (props: any) => {
export const AdminLayout = () => { export const AdminLayout = () => {
return ( return (
<CurrentUserProvider> <RemoteCollectionManagerProvider>
<InternalAdminLayout /> <CurrentUserProvider>
</CurrentUserProvider> <InternalAdminLayout />
</CurrentUserProvider>
</RemoteCollectionManagerProvider>
); );
}; };