From 0a3114f9cda5c698dd4620244f5f64808c8bca73 Mon Sep 17 00:00:00 2001 From: Katherine Date: Fri, 23 Aug 2024 11:54:45 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Amarkdown=20demo=20rendering=20failu?= =?UTF-8?q?re=20(#5114)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: rendering of markdown demo failed * fix: rendering of markdown demo failed * fix: rendering of markdown demo failed * revert: useURLSearchParamsVariable --- .../schema-component/antd/markdown/demos/demo2.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/markdown/demos/demo2.tsx b/packages/core/client/src/schema-component/antd/markdown/demos/demo2.tsx index 3aecf7e090..20357462ad 100644 --- a/packages/core/client/src/schema-component/antd/markdown/demos/demo2.tsx +++ b/packages/core/client/src/schema-component/antd/markdown/demos/demo2.tsx @@ -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 ( - - - + + + + + ); };