升级套餐标签
This commit is contained in:
@@ -23,9 +23,9 @@ const U1: React.FC = () => {
|
||||
|
||||
// 实时监听身份证读取
|
||||
useEffect(() => {
|
||||
// localStorage.setItem("lastIdCardNo", '421126199307103856');
|
||||
// navigate("/u2");
|
||||
// return;
|
||||
localStorage.setItem("lastIdCardNo", '362331199210243023');
|
||||
navigate("/UI6");
|
||||
return;
|
||||
window.electronAPI.startIdCardListen().catch((e: any) => {
|
||||
console.error("start_idcard_listen failed", e);
|
||||
window.electronAPI.log("error", `start_idcard_listen failed: ${e}`);
|
||||
@@ -75,7 +75,7 @@ const U1: React.FC = () => {
|
||||
.catch((e: any) => console.error(e));
|
||||
}, 1000);
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => { });
|
||||
};
|
||||
|
||||
// 先验证档案信息,查询到才跳转
|
||||
@@ -92,7 +92,7 @@ const U1: React.FC = () => {
|
||||
.then((res) => {
|
||||
if (res.Status === 200 && res.Data) {
|
||||
// 查询成功,跳转到 u2
|
||||
window.electronAPI.stopIdCardListen().catch(() => {});
|
||||
window.electronAPI.stopIdCardListen().catch(() => { });
|
||||
setReading(false);
|
||||
isProcessingRef.current = false;
|
||||
navigate("/u2");
|
||||
@@ -119,7 +119,7 @@ const U1: React.FC = () => {
|
||||
});
|
||||
|
||||
return () => {
|
||||
window.electronAPI.stopIdCardListen().catch(() => {});
|
||||
window.electronAPI.stopIdCardListen().catch(() => { });
|
||||
window.electronAPI.removeIdCardListeners();
|
||||
if (timerRef.current) clearTimeout(timerRef.current);
|
||||
if (intervalRef.current) clearInterval(intervalRef.current);
|
||||
|
||||
Reference in New Issue
Block a user