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) {