diff --git a/SupplierReview.html b/SupplierReview.html
index 248d88d..57d4d95 100644
--- a/SupplierReview.html
+++ b/SupplierReview.html
@@ -937,8 +937,8 @@
overflow: hidden;
">
-
+
@@ -1470,18 +1470,11 @@
throw new Error('服务器响应异常');
}
- // 直接使用Text格式先获取原始响应,确保正确解析
- const responseText = await response.text();
- console.log('原始响应文本:', responseText);
-
- // 然后再解析为JSON
+ // 直接解析为JSON
let data;
try {
- data = JSON.parse(responseText);
- console.log('成功解析JSON数据');
+ data = await response.json();
} catch (parseError) {
- console.error('JSON解析失败:', parseError);
- console.error('原始响应:', responseText);
throw new Error('返回数据格式错误');
}
@@ -1546,7 +1539,6 @@
⚠️
加载失败
${errorMessage}
-
详细错误: ${error.message}
`;
}