From f134e367b47dcc441ea9db022c98ec71fbe37e24 Mon Sep 17 00:00:00 2001 From: yutent Date: Tue, 7 Jan 2025 10:43:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E6=97=B6=E5=A2=9E=E5=8A=A0reson?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/next.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9e99a22..36467fe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bytedo/fetch", - "version": "2.1.8", + "version": "2.1.9", "description": "全新的ajax封装。分2个版本, 一个基于XMLHttpRequest, 一个基于window.fetch", "main": "dist/next.js", "files": [ diff --git a/src/next.js b/src/next.js index c502f67..efd30c3 100644 --- a/src/next.js +++ b/src/next.js @@ -204,7 +204,7 @@ class _Request { } abort() { - this.control.abort() + this.control.abort(`Request timeout: ${~~(this.options.timeout / 1000)}s`) } __type__(type) {