bug修复

This commit is contained in:
hongchao 2025-05-26 15:45:27 +08:00
parent 36ec4193eb
commit 2b43764020
1 changed files with 2 additions and 0 deletions

View File

@ -1368,6 +1368,7 @@ export default {
this.$refs["addFormParamsRef"].validate( async(valid) => { this.$refs["addFormParamsRef"].validate( async(valid) => {
if (valid) { if (valid) {
if (this.$refs["maTypeRef"] && this.$refs["malypeRef"].length > 0){
await this.$refs["maTypeRef"].forEach((formRef)=>{ await this.$refs["maTypeRef"].forEach((formRef)=>{
formRef.validate((validTemp)=>{ formRef.validate((validTemp)=>{
if(!validTemp){ if(!validTemp){
@ -1375,6 +1376,7 @@ export default {
} }
}) })
}) })
}
if(this.allPass==true){ if(this.allPass==true){
if (this.addTitle === "新增") { if (this.addTitle === "新增") {
const res = await addMaType(addParams); const res = await addMaType(addParams);