mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
refac
This commit is contained in:
parent
4b00036dbf
commit
a7f543d737
1 changed files with 2 additions and 8 deletions
|
|
@ -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 a new issue