mirror of
https://github.com/open-webui/open-webui
synced 2024-11-06 16:59:42 +00:00
refac
This commit is contained in:
parent
4b00036dbf
commit
a7f543d737
@ -271,19 +271,13 @@ __builtins__.input = input`);
|
||||
render();
|
||||
}
|
||||
|
||||
$: if (lang) {
|
||||
dispatchCode();
|
||||
}
|
||||
|
||||
const dispatchCode = () => {
|
||||
dispatch('code', { lang, code });
|
||||
};
|
||||
$: dispatch('code', { lang, code });
|
||||
|
||||
onMount(async () => {
|
||||
console.log('codeblock', lang, code);
|
||||
|
||||
if (lang) {
|
||||
dispatchCode();
|
||||
dispatch('code', { lang, code });
|
||||
}
|
||||
if (document.documentElement.classList.contains('dark')) {
|
||||
mermaid.initialize({
|
||||
|
Loading…
Reference in New Issue
Block a user