From a4bcd1eb9305e2c1b77c7847c2f4a979c0e95e93 Mon Sep 17 00:00:00 2001 From: batman <978517621@qq.com> Date: 星期一, 13 三月 2023 19:45:50 +0800 Subject: [PATCH] 新修改添加页面 --- src/utils/request.ts | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/utils/request.ts b/src/utils/request.ts index e2cdd90..ed8cf58 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -41,14 +41,13 @@ // 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