mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 10:26:45 +00:00
fix: variable value is lost after refreshing markdown block popup (#5478)
This commit is contained in:
parent
f0abab4ad0
commit
fc79c4397a
@ -150,6 +150,7 @@ export const MarkdownVoid: any = withDynamicSchemaProps(
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
const cvtContentToHTML = async () => {
|
const cvtContentToHTML = async () => {
|
||||||
|
setTimeout(async () => {
|
||||||
const replacedContent = await getRenderContent(
|
const replacedContent = await getRenderContent(
|
||||||
engine,
|
engine,
|
||||||
content,
|
content,
|
||||||
@ -157,8 +158,8 @@ export const MarkdownVoid: any = withDynamicSchemaProps(
|
|||||||
compile(localVariables),
|
compile(localVariables),
|
||||||
parseMarkdown,
|
parseMarkdown,
|
||||||
);
|
);
|
||||||
|
|
||||||
setHtml(replacedContent);
|
setHtml(replacedContent);
|
||||||
|
});
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
};
|
};
|
||||||
cvtContentToHTML();
|
cvtContentToHTML();
|
||||||
|
Loading…
Reference in New Issue
Block a user