mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
fix: the data range set on the mobile page based on URL parameters is invalid (#5968)
* fix: mobilePageVariableContextConsumptionDelay * refactor: extract components and remove redundant code * fix: make CI pass --------- Co-authored-by: Zeke Zhang <958414905@qq.com>
This commit is contained in:
parent
72255250fa
commit
d6c68c1bd9
@ -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>
|
||||
|
@ -38,7 +38,6 @@ import { Plugin } from '../../../application/Plugin';
|
||||
import { useAppSpin } from '../../../application/hooks/useAppSpin';
|
||||
import { useMenuTranslation } from '../../../schema-component/antd/menu/locale';
|
||||
import { Help } from '../../../user/Help';
|
||||
import { VariablesProvider } from '../../../variables';
|
||||
|
||||
const filterByACL = (schema, options) => {
|
||||
const { allowAll, allowMenuItemIds = [] } = options;
|
||||
@ -508,9 +507,7 @@ export const AdminProvider = (props) => {
|
||||
<NavigateIfNotSignIn>
|
||||
<RemoteSchemaTemplateManagerProvider>
|
||||
<RemoteCollectionManagerProvider>
|
||||
<VariablesProvider>
|
||||
<ACLRolesCheckProvider>{props.children}</ACLRolesCheckProvider>
|
||||
</VariablesProvider>
|
||||
<ACLRolesCheckProvider>{props.children}</ACLRolesCheckProvider>
|
||||
</RemoteCollectionManagerProvider>
|
||||
</RemoteSchemaTemplateManagerProvider>
|
||||
</NavigateIfNotSignIn>
|
||||
|
Loading…
x
Reference in New Issue
Block a user