2
0

fix:kyc界面错误提示修复

This commit is contained in:
zhongzm
2025-02-26 11:51:14 +08:00
parent 9c17330555
commit 654362b2d9

View File

@@ -159,7 +159,6 @@ const parseFile = (path: string) => {
const url = new URL(baseUrl);
baseUrl = url.host; // 这将获取域名和端口(如果有的话)
} catch (error) {
console.error('Invalid URL:', error);
// 如果解析失败,使用原始值的域名部分
baseUrl = baseUrl.replace(/^https?:\/\//, '').split('/')[0];
}
@@ -285,8 +284,6 @@ const handleApprove = async (record: Api.Kyc.KycInfo) => {
}
});
} catch (error) {
message.error(t('page.kyc.confirmerr'));
console.error('Approve failed:', error);
}
};
@@ -314,8 +311,6 @@ const handleReject = (record: Api.Kyc.KycInfo) => {
message.success(t('page.kyc.rejectsuc'));
getData(); // 刷新列表
} catch (error) {
message.error(t('page.kyc.confirmerr'));
console.error('Reject failed:', error);
}
}
});