tangning 2 년 전
부모
커밋
902b608e7b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/empower/AddInstallModal.vue

+ 1 - 1
src/views/empower/AddInstallModal.vue

@@ -107,7 +107,7 @@
       }
       async function handleConfirm() {
         const { id, machineCode } = await validate();
-        let res = await checkMachineCode({ machineCode:machineCode.trim() });
+        let res = await checkMachineCode({ machineCode:machineCode.replace(/\s*/g,"") });
         console.log('res', res, !id);
         if (!id && res && res.id) {
           createConfirm({