mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-06 15:36:21 +00:00
perf: abort
This commit is contained in:
@@ -66,7 +66,7 @@ const Chat = () => {
|
||||
const newTitle = prompts[0].content?.slice(0, 20) || '新对话';
|
||||
|
||||
// update history
|
||||
if (newChatId) {
|
||||
if (newChatId && !controller.signal.aborted) {
|
||||
forbidRefresh.current = true;
|
||||
const newHistory: ChatHistoryItemType = {
|
||||
_id: newChatId,
|
||||
|
@@ -69,7 +69,7 @@ const ShareChat = ({ shareId, chatId }: { shareId: string; chatId: string }) =>
|
||||
shareId
|
||||
});
|
||||
|
||||
if (newChatId) {
|
||||
if (newChatId && !controller.signal.aborted) {
|
||||
router.replace({
|
||||
query: {
|
||||
shareId,
|
||||
|
Reference in New Issue
Block a user