feat: 默认超时 8000ms

This commit is contained in:
xream
2024-11-24 12:13:52 +08:00
parent d4c419745e
commit 514414587b
5 changed files with 6 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ export default class Gist {
...(isLoon && proxy ? { node: proxy } : {}),
...(isQX && proxy ? { opts: { policy: proxy } } : {}),
...(proxy ? getPolicyDescriptor(proxy) : {}),
timeout,
timeout: timeout || 8000,
events: {
onResponse: (resp) => {
@@ -81,7 +81,7 @@ export default class Gist {
...(isLoon && proxy ? { node: proxy } : {}),
...(isQX && proxy ? { opts: { policy: proxy } } : {}),
...(proxy ? getPolicyDescriptor(proxy) : {}),
timeout,
timeout: timeout || 8000,
events: {
onResponse: (resp) => {