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