tangning 2 年之前
父节点
当前提交
86bbd186fc
共有 1 个文件被更改,包括 2 次插入2 次删除
  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', '温馨提示'),