mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 03:25:57 +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
|
||||
*/
|
||||
@ -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>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user