版权声明:此博客为个人博客,不涉及商业用途,仅提供学习参考,内容均来自个人原创以及互联网转载和摘录。 --------------------- 本文来自 路西法Lucifer 的CSDN 博客 ,全文地址请点击: https://blog.csdn.net/qq_37495786/article/details/83692544
问题:
[Vue warn]: Error in event handler for "click": "TypeError: Cannot read property 'validate' of undefined"
解决:
this.$refs.myBrandForm.validate()中的与ref="myBrandForm"名字叫的不一致,或者ref这个就没有定义。
我这里是因为没有定义ref导致报错的。