From 6d9d071430c84284ec1f78d9325c414b90f6eed4 Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: Thu, 08 Sep 2022 17:13:20 +0800
Subject: [PATCH] 异常
---
src/utils/request.ts | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/utils/request.ts b/src/utils/request.ts
index d492817..712c188 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -41,12 +41,10 @@
// 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);
// 转换失败返回一个空对象
--
Gitblit v1.9.2