mirror of
https://github.com/open-webui/open-webui
synced 2025-02-20 12:00:22 +00:00
refac
This commit is contained in:
parent
55d0ecc879
commit
e184a65dea
@ -41,6 +41,7 @@
|
||||
{save}
|
||||
on:save={(e) => {
|
||||
dispatch('update', {
|
||||
raw: token.raw,
|
||||
oldContent: token.text,
|
||||
newContent: e.detail
|
||||
});
|
||||
|
@ -481,11 +481,11 @@
|
||||
save={true}
|
||||
{model}
|
||||
on:update={(e) => {
|
||||
const { oldContent, newContent } = e.detail;
|
||||
const { raw, oldContent, newContent } = e.detail;
|
||||
|
||||
history.messages[message.id].content = history.messages[
|
||||
message.id
|
||||
].content.replace(oldContent, newContent);
|
||||
].content.replace(raw, raw.replace(oldContent, newContent));
|
||||
|
||||
dispatch('update');
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user