Commit effab6d83e472387a1202411d76db03dc0b07de8

Authored by zhangzzzz
1 parent 9d0c1fc2

下班也需要人脸;

Showing 1 changed file with 9 additions and 9 deletions
src/mes/teamInfo/index.js
@@ -317,17 +317,17 @@ const useTeamInfoEvent = props => { @@ -317,17 +317,17 @@ const useTeamInfoEvent = props => {
317 const handleChangeWorkState = async (params, workState) => { 317 const handleChangeWorkState = async (params, workState) => {
318 // 如果是上班,需要人脸识别 318 // 如果是上班,需要人脸识别
319 let faceResult = false; 319 let faceResult = false;
320 - if (workState == "on") {  
321 - const tempFaceData = localStorage.getItem("tempFaceData");  
322 - if (tempFaceData) {  
323 - faceResult = commonUtils.convertStrToObj(tempFaceData, {});  
324 - } else {  
325 - faceResult = await getFaceResult();  
326 - }  
327 -  
328 - if (!faceResult) return; 320 + // if (workState == "on") {
  321 + const tempFaceData = localStorage.getItem("tempFaceData");
  322 + if (tempFaceData) {
  323 + faceResult = commonUtils.convertStrToObj(tempFaceData, {});
  324 + } else {
  325 + faceResult = await getFaceResult();
329 } 326 }
330 327
  328 + if (!faceResult) return;
  329 + // }
  330 +
331 const { config, record, name } = params; 331 const { config, record, name } = params;
332 props.onProcedureCall({ 332 props.onProcedureCall({
333 btnConfig: config, 333 btnConfig: config,