mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 05:45:19 +00:00
fix: render mermaid after edit
This commit is contained in:
parent
a3ecf62564
commit
727a837e53
1 changed files with 11 additions and 0 deletions
|
|
@ -341,6 +341,17 @@
|
||||||
generatingImage = false;
|
generatingImage = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$: if (!edit) {
|
||||||
|
(async () => {
|
||||||
|
await tick();
|
||||||
|
renderStyling();
|
||||||
|
|
||||||
|
await mermaid.run({
|
||||||
|
querySelector: '.mermaid'
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
await tick();
|
await tick();
|
||||||
renderStyling();
|
renderStyling();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue