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,
MenuItemInitializers,
PluginManagerProvider,
RemoteCollectionManagerProvider,
// RemoteCollectionManagerProvider,
RouteSchemaComponent,
RouteSwitch,
RouteSwitchProvider,
@ -63,7 +63,7 @@ const providers = [
},
],
[SchemaComponentProvider, { components: { Link, NavLink } }],
RemoteCollectionManagerProvider,
// RemoteCollectionManagerProvider,
[SchemaInitializerProvider, { initializers: { MenuItemInitializers } }],
AntdSchemaComponentProvider,
ChinaRegionProvider,

View File

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