tangning hace 2 años
padre
commit
86bbd186fc
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/views/empower/AddInstallModal.vue

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

@@ -108,8 +108,8 @@
       async function handleConfirm() {
         const { id, machineCode } = await validate();
         let res = await checkMachineCode({ machineCode });
-        console.log('res', res);
-        if (res && res.id) {
+        console.log('res', res, !id);
+        if (!id && res && res.id) {
           createConfirm({
             iconType: 'warning',
             title: () => h('span', '温馨提示'),