feat: 修改录单跳转问题

This commit is contained in:
wjh 2024-03-12 16:08:27 +08:00
parent f98a4305f3
commit 847a1fae9a

View File

@ -1,5 +1,11 @@
import React from 'react';
import { CollectionRecordProvider, DataBlockProvider, RemoteSchemaComponent, css } from '@nocobase/client';
import {
CollectionRecordProvider,
DataBlockProvider,
RecordProvider,
RemoteSchemaComponent,
css,
} from '@nocobase/client';
import { useNavigate, useParams } from 'react-router-dom';
import pathToRegexp from 'path-to-regexp';
import { useHeadStyles } from '../pages/style';
@ -34,10 +40,10 @@ export const DetailsPage: React.FC = () => {
}}
/>
</div>
<DataBlockProvider collection={collection}>
<CollectionRecordProvider record={{ id: cid }} parentRecord={null}>
<DataBlockProvider filterByTk={cid} collection={collection}>
<RecordProvider record={{ id: cid }}>
<RemoteSchemaComponent uid={params.pageId} onlyRenderProperties />
</CollectionRecordProvider>
</RecordProvider>
</DataBlockProvider>
</div>
);