mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
refac
This commit is contained in:
parent
ed47e24494
commit
097e90f1de
1 changed files with 4 additions and 0 deletions
|
|
@ -276,6 +276,10 @@ __builtins__.input = input`);
|
|||
|
||||
onMount(async () => {
|
||||
console.log('codeblock', lang, code);
|
||||
|
||||
if (lang) {
|
||||
dispatch('code', { lang });
|
||||
}
|
||||
if (document.documentElement.classList.contains('dark')) {
|
||||
mermaid.initialize({
|
||||
startOnLoad: true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue