From a674755a4b5d0f70e115649f6ba7bd3247efbe95 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Sat, 02 Dec 2023 13:24:09 +0800 Subject: [PATCH] 无限加载组件,支持不加载刷新 --- bases/Fetcher.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bases/Fetcher.js b/bases/Fetcher.js index 4fd1e10..5a3c494 100644 --- a/bases/Fetcher.js +++ b/bases/Fetcher.js @@ -150,8 +150,8 @@ // 捕获响应 options && options.onCapture && options.onCapture({ url: this._createUrlPrefix(options) + url, - request: JSON.stringify(data), - response: JSON.stringify(response.data), + request: data, + response: { ...response.data }, httpCode: response.statusCode, }); /** @@ -173,7 +173,7 @@ // 捕获响应 options && options.onCapture && options.onCapture({ url: this._createUrlPrefix(options) + url, - request: JSON.stringify(data), + request: data, httpCode: error && error.status, httpMsg: msg + (error.message ? (' / ' + error.message) : ''), }); -- Gitblit v1.9.1