異常提示
Property 'validate' does not exist on type 'Vue | Element | Vue[] | Element[]'.
Property 'validate' does not exist on type 'Vue'.
解決方法
clickLogin() {
const el: any = this.$refs.form;
el.validate((valid: boolean) => {
if (valid) {
} else {
}
});
}