fix: change default httptimeout
This commit is contained in:
@@ -446,7 +446,7 @@ const defaultApi = {
|
||||
resHook: "", // response 钩子函数
|
||||
fetchLimit: DEFAULT_FETCH_LIMIT, // 最大请求数量
|
||||
fetchInterval: DEFAULT_FETCH_INTERVAL, // 请求间隔时间
|
||||
httpTimeout: DEFAULT_HTTP_TIMEOUT * 30, // 请求超时时间
|
||||
httpTimeout: DEFAULT_HTTP_TIMEOUT * 3, // 请求超时时间
|
||||
batchInterval: DEFAULT_BATCH_INTERVAL, // 批处理请求间隔时间
|
||||
batchSize: DEFAULT_BATCH_SIZE, // 每次最多发送段落数量
|
||||
batchLength: DEFAULT_BATCH_LENGTH, // 每次发送最大文字数量
|
||||
|
||||
@@ -588,7 +588,7 @@ function ApiFields({ apiSlug, isUserApi, deleteApi }) {
|
||||
name="httpTimeout"
|
||||
value={httpTimeout}
|
||||
onChange={handleChange}
|
||||
min={5000}
|
||||
min={1000}
|
||||
max={60000}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
@@ -260,7 +260,7 @@ export default function Settings() {
|
||||
name="httpTimeout"
|
||||
value={httpTimeout}
|
||||
onChange={handleChange}
|
||||
min={5000}
|
||||
min={1000}
|
||||
max={60000}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
Reference in New Issue
Block a user