this.$refs[formName]是一个数组,并且循环中所使用的表单验证是相同的,所以直接获取数组中的第一个 this.$refs[formName][0].validate((valid) => {}