From 022a757742c70b3106d817461464e821b537e794 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期二, 05 十一月 2024 13:20:40 +0800 Subject: [PATCH] process loading bug;报告 --- src/utils/request.ts | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/utils/request.ts b/src/utils/request.ts index 6e9e5a9..dca6a83 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -131,7 +131,7 @@ const createAxiosInstance = (option: Partial<CreateAxiosDefaults<any>> = {}) => { return axios.create({ baseURL: MAIN_URL, - timeout: 50000, + timeout: 1200000, headers: { 'Content-Type': 'application/json;charset=utf-8 ' }, ...option, }); @@ -147,7 +147,6 @@ responseType: 'stream', }); const decoder = new TextDecoder(); -const encoder = new TextEncoder(); const readStream = async (stream: ReadableStream, cb: (value) => void): Promise<any> => { const reader = stream.getReader(); let lastValue = ''; -- Gitblit v1.9.3