Add XUDP new documents

This commit is contained in:
yuhan6665
2023-04-17 21:23:30 -04:00
parent eb7b342dab
commit f9c5ce9d40
3 changed files with 42 additions and 20 deletions
+8 -14
View File
@@ -30,14 +30,11 @@ export default defineComponent({
startOnLoad: false,
theme: dark.value ? "dark" : "default",
});
mermaid.default.render(
chartID.value!,
decodeURI(rawGraph.value!)
).then(
({svg, bindFunctions}) => {
mermaid.default
.render(chartID.value!, decodeURI(rawGraph.value!))
.then(({ svg, bindFunctions }) => {
html.innerHtml = svg;
}
);
});
});
});
@@ -47,14 +44,11 @@ export default defineComponent({
startOnLoad: false,
theme: dark.value ? "dark" : "default",
});
mermaid.default.render(
chartID.value!,
decodeURI(rawGraph.value!)
).then(
({svg, bindFunctions}) => {
mermaid.default
.render(chartID.value!, decodeURI(rawGraph.value!))
.then(({ svg, bindFunctions }) => {
html.innerHtml = svg;
}
);
});
});
return {