mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
0377762b2c
@ -19,6 +19,7 @@ import {
|
||||
RouteObject,
|
||||
useRoutes,
|
||||
} from 'react-router-dom';
|
||||
import VariablesProvider from '../variables/VariablesProvider';
|
||||
import { Application } from './Application';
|
||||
import { CustomRouterContextProvider } from './CustomRouterContextProvider';
|
||||
import { BlankComponent, RouterContextCleaner } from './components';
|
||||
@ -146,8 +147,10 @@ export class RouterManager {
|
||||
<ReactRouter {...opts}>
|
||||
<CustomRouterContextProvider>
|
||||
<BaseLayout>
|
||||
<RenderRoutes />
|
||||
{children}
|
||||
<VariablesProvider>
|
||||
<RenderRoutes />
|
||||
{children}
|
||||
</VariablesProvider>
|
||||
</BaseLayout>
|
||||
</CustomRouterContextProvider>
|
||||
</ReactRouter>
|
||||
|
@ -57,7 +57,6 @@ import {
|
||||
import { Plugin } from '../../../application/Plugin';
|
||||
import { useMenuTranslation } from '../../../schema-component/antd/menu/locale';
|
||||
import { Help } from '../../../user/Help';
|
||||
import { VariablesProvider } from '../../../variables';
|
||||
import { KeepAlive } from './KeepAlive';
|
||||
|
||||
export { KeepAlive };
|
||||
@ -528,9 +527,7 @@ export const AdminProvider = (props) => {
|
||||
<MenuSchemaRequestProvider>
|
||||
<RemoteCollectionManagerProvider>
|
||||
<CurrentAppInfoProvider>
|
||||
<RemoteSchemaTemplateManagerProvider>
|
||||
<VariablesProvider>{props.children}</VariablesProvider>
|
||||
</RemoteSchemaTemplateManagerProvider>
|
||||
<RemoteSchemaTemplateManagerProvider>{props.children}</RemoteSchemaTemplateManagerProvider>
|
||||
</CurrentAppInfoProvider>
|
||||
</RemoteCollectionManagerProvider>
|
||||
</MenuSchemaRequestProvider>
|
||||
|
Loading…
x
Reference in New Issue
Block a user