From bc352bfd4ee20ad52d210064c9fbcd8a664d6121 Mon Sep 17 00:00:00 2001 From: Your Name <123456> Date: 星期三, 14 九月 2022 17:36:34 +0800 Subject: [PATCH] lct --- src/utils/request.ts | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils/request.ts b/src/utils/request.ts index e2cdd90..712c188 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -41,14 +41,14 @@ // if(data.indexOf('http://') === -1){ // return data // }else{ - return JSONbig.parse(data); - // } - + // if(typeof JSON.parse(data) === 'object'){ + // return JSONbig.parse(data); + // }; + return JSONbig.parse(data); } catch (err) { console.log(err); // 转换失败返回一个空对象 - return { - }; + return data } } ]; -- Gitblit v1.9.2