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; }