修复 IDCard 读取日志格式,优化错误信息提示
This commit is contained in:
@@ -51,7 +51,7 @@ const U1: React.FC = () => {
|
||||
window.electronAPI.log("info", `[idcard-data] received`);
|
||||
window.electronAPI.log(
|
||||
"info",
|
||||
`Read IDCard success: ${payload.name} ${payload.id_card_no}`
|
||||
`Read IDCard success: ${payload.name} ${payload.id_card_no}`,
|
||||
);
|
||||
|
||||
// 清理倒计时
|
||||
@@ -98,7 +98,9 @@ const U1: React.FC = () => {
|
||||
navigate("/u2");
|
||||
} else {
|
||||
// 未查询到档案信息,显示错误提示,不跳转
|
||||
setErrorMsg("未查询到您的档案信息,详情请咨询前台工作人员!");
|
||||
setErrorMsg(
|
||||
res.Message || "未查询到您的档案信息,详情请咨询前台工作人员!",
|
||||
);
|
||||
setReading(false);
|
||||
isProcessingRef.current = false;
|
||||
resetListening();
|
||||
|
||||
Reference in New Issue
Block a user