mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-16 20:25:59 +08:00
refac
This commit is contained in:
parent
8dac2a2140
commit
4e6d165d00
@ -48,6 +48,10 @@
|
||||
console.log(func);
|
||||
});
|
||||
|
||||
if (window.opener ?? false) {
|
||||
window.opener.postMessage('loaded', '*');
|
||||
}
|
||||
|
||||
if (sessionStorage.function) {
|
||||
func = JSON.parse(sessionStorage.function);
|
||||
sessionStorage.removeItem('function');
|
||||
@ -61,6 +65,7 @@
|
||||
</script>
|
||||
|
||||
{#if mounted}
|
||||
{#key func?.content}
|
||||
<FunctionEditor
|
||||
id={func?.id ?? ''}
|
||||
name={func?.name ?? ''}
|
||||
@ -71,4 +76,5 @@
|
||||
saveHandler(e.detail);
|
||||
}}
|
||||
/>
|
||||
{/key}
|
||||
{/if}
|
||||
|
@ -45,6 +45,10 @@
|
||||
console.log(tool);
|
||||
});
|
||||
|
||||
if (window.opener ?? false) {
|
||||
window.opener.postMessage('loaded', '*');
|
||||
}
|
||||
|
||||
if (sessionStorage.tool) {
|
||||
tool = JSON.parse(sessionStorage.tool);
|
||||
sessionStorage.removeItem('tool');
|
||||
@ -58,6 +62,7 @@
|
||||
</script>
|
||||
|
||||
{#if mounted}
|
||||
{#key tool?.content}
|
||||
<ToolkitEditor
|
||||
id={tool?.id ?? ''}
|
||||
name={tool?.name ?? ''}
|
||||
@ -68,4 +73,5 @@
|
||||
saveHandler(e.detail);
|
||||
}}
|
||||
/>
|
||||
{/key}
|
||||
{/if}
|
||||
|
Loading…
x
Reference in New Issue
Block a user