From 44633cf1ce2bc984e324765812a51d81a50a6569 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Tue, 21 Feb 2023 10:58:24 +0800
Subject: [PATCH] 修改表述
---
src/utils/request.ts | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/utils/request.ts b/src/utils/request.ts
index d492817..ed8cf58 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'){
+ // 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