From effab6d83e472387a1202411d76db03dc0b07de8 Mon Sep 17 00:00:00 2001 From: zhangzhen <525765282@qq.com> Date: Thu, 4 Dec 2025 11:00:40 +0800 Subject: [PATCH] 下班也需要人脸; --- src/mes/teamInfo/index.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/mes/teamInfo/index.js b/src/mes/teamInfo/index.js index c36374a..92b819c 100644 --- a/src/mes/teamInfo/index.js +++ b/src/mes/teamInfo/index.js @@ -317,17 +317,17 @@ const useTeamInfoEvent = props => { const handleChangeWorkState = async (params, workState) => { // 如果是上班,需要人脸识别 let faceResult = false; - if (workState == "on") { - const tempFaceData = localStorage.getItem("tempFaceData"); - if (tempFaceData) { - faceResult = commonUtils.convertStrToObj(tempFaceData, {}); - } else { - faceResult = await getFaceResult(); - } - - if (!faceResult) return; + // if (workState == "on") { + const tempFaceData = localStorage.getItem("tempFaceData"); + if (tempFaceData) { + faceResult = commonUtils.convertStrToObj(tempFaceData, {}); + } else { + faceResult = await getFaceResult(); } + if (!faceResult) return; + // } + const { config, record, name } = params; props.onProcedureCall({ btnConfig: config, -- libgit2 0.22.2