fix: fix bug for regenerate button did not work

This commit is contained in:
RockYang 2024-02-19 11:22:42 +08:00
parent b0162e6a92
commit 4b09878bdd
2 changed files with 2 additions and 2 deletions

View File

@ -824,7 +824,7 @@ const reGenerate = function () {
icon: loginUser.value.avatar,
content: md.render(text)
});
socket.value.send(previousText.value);
socket.value.send(JSON.stringify({type: "chat", content: previousText.value}));
}
const chatName = ref('')

View File

@ -418,7 +418,7 @@ const reGenerate = () => {
icon: loginUser.value.avatar,
content: renderInputText(text)
});
socket.value.send(previousText.value);
socket.value.send(JSON.stringify({type: "chat", content: previousText.value}));
}
const showShare = ref(false)