mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-04 05:56:08 +00:00
fix: sse render
This commit is contained in:
@@ -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;
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user