fix: sse render

This commit is contained in:
archer
2023-07-25 09:52:23 +08:00
parent 6fc6c99477
commit 3adb97b396
7 changed files with 107 additions and 99 deletions

View File

@@ -83,15 +83,7 @@ export const useChatStore = create<State>()(
return [history, ...state.history];
}
})();
// newHistory.sort(function (a, b) {
// if (a.top === true && b.top === false) {
// return -1;
// } else if (a.top === false && b.top === true) {
// return 1;
// } else {
// return 0;
// }
// });
state.history = newHistory;
});
},