fix(client): request collections after login
This commit is contained in:
parent
36ae278302
commit
9175ddc90e
@ -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,
|
||||||
|
@ -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 (
|
||||||
|
<RemoteCollectionManagerProvider>
|
||||||
<CurrentUserProvider>
|
<CurrentUserProvider>
|
||||||
<InternalAdminLayout />
|
<InternalAdminLayout />
|
||||||
</CurrentUserProvider>
|
</CurrentUserProvider>
|
||||||
|
</RemoteCollectionManagerProvider>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user