mirror of
https://github.com/open-webui/open-webui
synced 2024-11-28 23:13:30 +00:00
refac
This commit is contained in:
parent
ab270c1682
commit
e3668a2f1c
@ -104,12 +104,7 @@
|
|||||||
type="button"
|
type="button"
|
||||||
on:click={async () => {
|
on:click={async () => {
|
||||||
if (file?.url) {
|
if (file?.url) {
|
||||||
getFileContentById(file.id).then((blob) => {
|
window.open(`${file?.url}/content`, '_blank').focus();
|
||||||
if (blob) {
|
|
||||||
const url = URL.createObjectURL(blob);
|
|
||||||
window.open(url, '_blank').focus();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user