mirror of
https://github.com/open-webui/open-webui
synced 2025-03-04 19:38:54 +00:00
refac
This commit is contained in:
parent
794919e91d
commit
8f3fcdcf5c
@ -372,7 +372,7 @@ class Pipe:
|
||||
lang="python"
|
||||
{boilerplate}
|
||||
onChange={(e) => {
|
||||
_content = e.detail.value;
|
||||
_content = e;
|
||||
}}
|
||||
onSave={async () => {
|
||||
if (formElement) {
|
||||
|
@ -465,7 +465,7 @@
|
||||
saveCode();
|
||||
}}
|
||||
onChange={(e) => {
|
||||
_code = e.detail.value;
|
||||
_code = e;
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
@ -89,13 +89,13 @@
|
||||
{attributes}
|
||||
{save}
|
||||
onCode={(e) => {
|
||||
dispatch('code', e.detail);
|
||||
dispatch('code', e);
|
||||
}}
|
||||
onSave={(e) => {
|
||||
dispatch('update', {
|
||||
raw: token.raw,
|
||||
oldContent: token.text,
|
||||
newContent: e.detail
|
||||
newContent: e
|
||||
});
|
||||
}}
|
||||
/>
|
||||
|
@ -285,7 +285,7 @@ class Tools:
|
||||
{boilerplate}
|
||||
lang="python"
|
||||
onChange={(e) => {
|
||||
_content = e.detail.value;
|
||||
_content = e;
|
||||
}}
|
||||
onSave={() => {
|
||||
if (formElement) {
|
||||
|
Loading…
Reference in New Issue
Block a user