mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:45:18 +00:00
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:
parent
b79087a3ee
commit
0a3114f9cd
@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* title: Markdown.Void
|
* title: Markdown.Void
|
||||||
*/
|
*/
|
||||||
@ -8,6 +6,7 @@ import { observer, useField } from '@formily/react';
|
|||||||
import { Markdown, SchemaComponent, SchemaComponentProvider } from '@nocobase/client';
|
import { Markdown, SchemaComponent, SchemaComponentProvider } from '@nocobase/client';
|
||||||
import { Button } from 'antd';
|
import { Button } from 'antd';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { Router } from 'react-router-dom';
|
||||||
|
|
||||||
const schema = {
|
const schema = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
@ -49,8 +48,10 @@ const Editable = observer(
|
|||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
return (
|
return (
|
||||||
<SchemaComponentProvider components={{ Editable, Markdown, FormItem }}>
|
<Router location={window.location} navigator={null}>
|
||||||
<SchemaComponent schema={schema} />
|
<SchemaComponentProvider components={{ Editable, Markdown, FormItem }}>
|
||||||
</SchemaComponentProvider>
|
<SchemaComponent schema={schema} />
|
||||||
|
</SchemaComponentProvider>
|
||||||
|
</Router>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user