fix(client): request collections after login
This commit is contained in:
parent
36ae278302
commit
9175ddc90e
@ -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,
|
||||
|
@ -8,6 +8,7 @@ import {
|
||||
findByUid,
|
||||
findMenuItem,
|
||||
PluginManager,
|
||||
RemoteCollectionManagerProvider,
|
||||
RemoteSchemaComponent,
|
||||
useDocumentTitle,
|
||||
useRoute,
|
||||
@ -100,9 +101,11 @@ const InternalAdminLayout = (props: any) => {
|
||||
|
||||
export const AdminLayout = () => {
|
||||
return (
|
||||
<CurrentUserProvider>
|
||||
<InternalAdminLayout />
|
||||
</CurrentUserProvider>
|
||||
<RemoteCollectionManagerProvider>
|
||||
<CurrentUserProvider>
|
||||
<InternalAdminLayout />
|
||||
</CurrentUserProvider>
|
||||
</RemoteCollectionManagerProvider>
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user