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