From 870ed0107a6774f8a3f8fa7bbb9dcabb00bfae6d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 26 Mar 2022 15:44:08 +0800 Subject: [PATCH] 1 --- http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http.js b/http.js index 06d1866..16f6305 100644 --- a/http.js +++ b/http.js @@ -16,10 +16,10 @@ function get(url, params) { }).then((response) => { ret.data = response; resolve(ret); - }).catch(error) => { + }).catch((error) => { ret.err = error; resolve(ret); - }; + }); }); }