mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2025-01-19 17:21:41 +03:00
Attempt to fix mermaid v10
This commit is contained in:
parent
9504133f01
commit
eb7b342dab
@ -31,10 +31,11 @@ export default defineComponent({
|
|||||||
theme: dark.value ? "dark" : "default",
|
theme: dark.value ? "dark" : "default",
|
||||||
});
|
});
|
||||||
mermaid.default.render(
|
mermaid.default.render(
|
||||||
chartID.value,
|
chartID.value!,
|
||||||
decodeURI(rawGraph.value),
|
decodeURI(rawGraph.value!)
|
||||||
(svgCode, bindFunc) => {
|
).then(
|
||||||
html.innerHtml = svgCode;
|
({svg, bindFunctions}) => {
|
||||||
|
html.innerHtml = svg;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@ -47,10 +48,11 @@ export default defineComponent({
|
|||||||
theme: dark.value ? "dark" : "default",
|
theme: dark.value ? "dark" : "default",
|
||||||
});
|
});
|
||||||
mermaid.default.render(
|
mermaid.default.render(
|
||||||
chartID.value,
|
chartID.value!,
|
||||||
decodeURI(rawGraph.value),
|
decodeURI(rawGraph.value!)
|
||||||
(svgCode, bindFunc) => {
|
).then(
|
||||||
html.innerHtml = svgCode;
|
({svg, bindFunctions}) => {
|
||||||
|
html.innerHtml = svg;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user