function() { let dForm = this.$refs['updateHouse'].$refs['roomForm'].$refs['dForm']; let dataForm = this.$refs['updateHouse'].$refs['dataForm']; let customForm = dForm.model; let form = dataForm.model; let validateForm = form => { return new Promise((resolve,reject)=>{ form.validate(valid=>{ if(valid) { resolve(valid) }else { reject(valid) } }) }) } let validateA = validateForm(dForm) let validateB = validateForm(dataForm) let p = await Promise.all([validateA,validateB]).then(res=>res).catch(e => console.log(e)); if(!Array.isArray(p) || p.some(bool => !bool)) { return } }