From 9175ddc90ee21404702cc53de653b2285db57ce6 Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 9 Mar 2022 11:21:11 +0800 Subject: [PATCH] fix(client): request collections after login --- packages/app/src/pages/index.tsx | 4 ++-- .../client/src/route-switch/antd/admin-layout/index.tsx | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/app/src/pages/index.tsx b/packages/app/src/pages/index.tsx index f4876045e..1433bda2d 100644 --- a/packages/app/src/pages/index.tsx +++ b/packages/app/src/pages/index.tsx @@ -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, diff --git a/packages/client/src/route-switch/antd/admin-layout/index.tsx b/packages/client/src/route-switch/antd/admin-layout/index.tsx index af8ef4db2..b3edeb1ba 100644 --- a/packages/client/src/route-switch/antd/admin-layout/index.tsx +++ b/packages/client/src/route-switch/antd/admin-layout/index.tsx @@ -8,6 +8,7 @@ import { findByUid, findMenuItem, PluginManager, + RemoteCollectionManagerProvider, RemoteSchemaComponent, useDocumentTitle, useRoute, @@ -100,9 +101,11 @@ const InternalAdminLayout = (props: any) => { export const AdminLayout = () => { return ( - - - + + + + + ); };