fix: handle api error

This commit is contained in:
jialin
2025-04-17 17:58:51 +08:00
parent 353f73ed0b
commit 47666b7193
9 changed files with 24 additions and 36 deletions
-1
View File
@@ -27,7 +27,6 @@ const extractJSON = (dataStr: string) => {
const errorHandler = async (res: any) => {
try {
const data = await res.json();
console.log('errorHandler:', data);
return {
error: true,
data: data