From 15cc22f00bba91fbf58f0ef0d1793c17f0e2e58a Mon Sep 17 00:00:00 2001 From: ONLY-yours <1349021570@qq.com> Date: Wed, 10 Jul 2024 17:54:02 +0800 Subject: [PATCH] :pencil2: fix: delete console.log --- src/ProChat/mocks/streamResponse.ts | 1 - src/ProChat/store/action.ts | 5 ----- src/ProChat/store/reducers/message.ts | 2 -- 3 files changed, 8 deletions(-) diff --git a/src/ProChat/mocks/streamResponse.ts b/src/ProChat/mocks/streamResponse.ts index d05a1f6..80b8d77 100644 --- a/src/ProChat/mocks/streamResponse.ts +++ b/src/ProChat/mocks/streamResponse.ts @@ -56,7 +56,6 @@ export class MockResponse { setTimeout(() => { if (this.error) { const errorResponseOptions = { status: 500, statusText: 'Internal Server Error' }; - // 返回模拟的网络错误响应,这里我们使用500状态码作为示例 resolve(new Response(null, errorResponseOptions)); } else { diff --git a/src/ProChat/store/action.ts b/src/ProChat/store/action.ts index 00db264..ce2f05d 100644 --- a/src/ProChat/store/action.ts +++ b/src/ProChat/store/action.ts @@ -501,11 +501,6 @@ export const chatAction: StateCreator { diff --git a/src/ProChat/store/reducers/message.ts b/src/ProChat/store/reducers/message.ts index cda6039..92f70b0 100644 --- a/src/ProChat/store/reducers/message.ts +++ b/src/ProChat/store/reducers/message.ts @@ -85,8 +85,6 @@ export const messagesReducer = ( // 遍历 rest 对象并更新 message 对象 for (const [restKey, restValue] of Object.entries(rest)) { - console.log('restKey', restKey, restValue); - message[restKey] = restValue; }