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("请输入扫描地点");