From deff81ac755ed3b5e00d61b6b036a806a86d0903 Mon Sep 17 00:00:00 2001 From: shidongli Date: Thu, 25 Aug 2022 14:23:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E6=96=B9=E7=AE=A1=E7=90=86=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E6=B5=8B=E8=AF=95=E9=A1=B9=E7=9B=AE=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/itemCategory/index.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/system/itemCategory/index.vue b/src/views/system/itemCategory/index.vue index a7d05c9..b9eafed 100644 --- a/src/views/system/itemCategory/index.vue +++ b/src/views/system/itemCategory/index.vue @@ -295,8 +295,13 @@ export default { console.log(min, max); if (Number(max) < Number(min)) { - console.log(min, max); - callback(new Error("最高分必须大于最低分,请重新填写!")); + if(max!=="" && min!==""){ + callback(new Error("最高分必须大于最低分,请重新填写!")); + }else{ + console.log(min, max); + } + + } if ( value.map((e) => {