From 280d5a3431ed4134c6cfcbc171d58066135b8266 Mon Sep 17 00:00:00 2001 From: winixt Date: Thu, 18 Jan 2024 17:12:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20dataHandler=20=E6=94=AF=E6=8C=81=20promi?= =?UTF-8?q?se?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-plugin-request/src/template/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fes-plugin-request/src/template/request.js b/packages/fes-plugin-request/src/template/request.js index f1b27123..9b61ea48 100644 --- a/packages/fes-plugin-request/src/template/request.js +++ b/packages/fes-plugin-request/src/template/request.js @@ -141,7 +141,7 @@ const _request = (url, data, options, onSuccess) => { } if (!context.error) { if (onSuccess) { - return onSuccess(dataHandler(context.response.data, context.response), context); + return onSuccess(await dataHandler(context.response.data, context.response), context); } return dataHandler(context.response.data, context.response); }