From a9e48ef6b9c847094462ee125ef63c918f4bd492 Mon Sep 17 00:00:00 2001 From: 13405411873 <1994398261@qq.com> Date: Wed, 16 Apr 2025 00:06:21 +0800 Subject: [PATCH] =?UTF-8?q?bug=20=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/system/shMenu/index.vue | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ruoyi-ui/src/views/system/shMenu/index.vue b/ruoyi-ui/src/views/system/shMenu/index.vue index b4b088f..d368eeb 100644 --- a/ruoyi-ui/src/views/system/shMenu/index.vue +++ b/ruoyi-ui/src/views/system/shMenu/index.vue @@ -243,13 +243,13 @@ export default { ], // 表单校验 rules: { - // filePath: [ - // { - // required: true, - // message: "扫描文件不能为空", - // trigger: "blur", - // }, - // ], + filePath: [ + { + required: true, + message: "扫描文件不能为空", + trigger: "blur", + }, + ], scanPosition: [ { @@ -329,10 +329,10 @@ export default { submitForm() { let flag = false; this.form.forEach(it=>{ - // if (!it.filePath){ - // flag = true - // this.$modal.msgError("请上传文件"); - // } + if (!it.filePath){ + flag = true + this.$modal.msgError("请上传文件"); + } if (!it.scanPosition){ flag = true this.$modal.msgError("请输入扫描地点");