mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 13:40:55 +00:00
fix
This commit is contained in:
parent
dc4c6b3b14
commit
94eb91063c
@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
import { onDestroy, onMount } from 'svelte';
|
||||
|
||||
export let show = false;
|
||||
export let src = '';
|
||||
@ -45,6 +45,14 @@
|
||||
document.body.removeChild(previewElement);
|
||||
document.body.style.overflow = 'unset';
|
||||
}
|
||||
|
||||
onDestroy(() => {
|
||||
show = false;
|
||||
|
||||
if (previewElement) {
|
||||
document.body.removeChild(previewElement);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
{#if show}
|
||||
|
Loading…
Reference in New Issue
Block a user