tangning il y a 2 ans
Parent
commit
86bbd186fc
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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', '温馨提示'),