tangning 2 years ago
parent
commit
2d414efe5c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/empower/AddInstallModal.vue

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

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