mirror of
https://github.com/open-webui/open-webui
synced 2025-02-06 13:10:16 +00:00
refac
This commit is contained in:
parent
ed47e24494
commit
097e90f1de
@ -276,6 +276,10 @@ __builtins__.input = input`);
|
|||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
console.log('codeblock', lang, code);
|
console.log('codeblock', lang, code);
|
||||||
|
|
||||||
|
if (lang) {
|
||||||
|
dispatch('code', { lang });
|
||||||
|
}
|
||||||
if (document.documentElement.classList.contains('dark')) {
|
if (document.documentElement.classList.contains('dark')) {
|
||||||
mermaid.initialize({
|
mermaid.initialize({
|
||||||
startOnLoad: true,
|
startOnLoad: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user