From e560c181e002a7d0ca46bd352a3337e193e260a4 Mon Sep 17 00:00:00 2001 From: Dayu <1010@qq.com> Date: Mon, 22 Jul 2024 14:30:36 +0800 Subject: [PATCH] =?UTF-8?q?bug=20=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inspection/inspectiontasks.vue | 6 ++---- src/views/spares/material.vue | 12 ++++-------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/views/inspection/inspectiontasks.vue b/src/views/inspection/inspectiontasks.vue index 6eef7af..4e9626e 100644 --- a/src/views/inspection/inspectiontasks.vue +++ b/src/views/inspection/inspectiontasks.vue @@ -506,10 +506,8 @@ loading(); }); } else { - this.$message({ - type: "warning", - message: "请输入必要信息!" - }); + console.log('error submit!!'); + return false; } }); diff --git a/src/views/spares/material.vue b/src/views/spares/material.vue index b44be35..b5d81ab 100644 --- a/src/views/spares/material.vue +++ b/src/views/spares/material.vue @@ -561,10 +561,8 @@ loading(); }); } else { - this.$message({ - type: "warning", - message: "请输入必要信息!" - }); + console.log('error submit!!'); + return false; } }); }, @@ -589,10 +587,8 @@ loading(); }); } else { - this.$message({ - type: "warning", - message: "请输入必要信息!" - }); + console.log('error submit!!'); + return false; } }); },