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({