超时增加reson参数

master 2.1.9
yutent 2025-01-07 10:43:13 +08:00
parent 763792d7f1
commit f134e367b4
2 changed files with 2 additions and 2 deletions

View File

@ -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": [

View File

@ -204,7 +204,7 @@ class _Request {
}
abort() {
this.control.abort()
this.control.abort(`Request timeout: ${~~(this.options.timeout / 1000)}s`)
}
__type__(type) {