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', '温馨提示'),