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