Vue报错 -- Cannot read property 'validate' of undefined

refs和ref名字不一致:把refs和ref名字保持一致就行了

this.$refs.loginForm.validate(valid => {   ref="loginForm" 

你可能感兴趣的:(vue)