fix:markdown demo rendering failure (#5114)

* fix: rendering of markdown demo failed

* fix: rendering of markdown demo failed

* fix: rendering of markdown demo failed

* revert: useURLSearchParamsVariable
This commit is contained in:
Katherine 2024-08-23 11:54:45 +08:00 committed by GitHub
parent b79087a3ee
commit 0a3114f9cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,3 @@
/**
* title: Markdown.Void
*/
@ -8,6 +6,7 @@ import { observer, useField } from '@formily/react';
import { Markdown, SchemaComponent, SchemaComponentProvider } from '@nocobase/client';
import { Button } from 'antd';
import React from 'react';
import { Router } from 'react-router-dom';
const schema = {
type: 'object',
@ -49,8 +48,10 @@ const Editable = observer(
export default () => {
return (
<SchemaComponentProvider components={{ Editable, Markdown, FormItem }}>
<SchemaComponent schema={schema} />
</SchemaComponentProvider>
<Router location={window.location} navigator={null}>
<SchemaComponentProvider components={{ Editable, Markdown, FormItem }}>
<SchemaComponent schema={schema} />
</SchemaComponentProvider>
</Router>
);
};