Skip to content

Commit

Permalink
修复 bug“重置”按钮报错 (#2102)
Browse files Browse the repository at this point in the history
* fix 重置按钮bug

* fix version control bug

---------

Co-authored-by: binary-husky <qingxu.fu@outlook.com>
  • Loading branch information
guoruqiang and binary-husky authored Dec 28, 2024
1 parent ac64a77 commit c53ddf6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions themes/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,14 @@ function restore_chat_from_local_storage(event) {
}


function clear_conversation(a, b, c) {
update_conversation_metadata();
let stopButton = document.getElementById("elem_stop");
stopButton.click();
// console.log("clear_conversation");
return reset_conversation(a, b);
}


function reset_conversation(a, b) {
// console.log("js_code_reset");
Expand Down

0 comments on commit c53ddf6

Please sign in to comment.