element报Cannot read property 'disabled' of null错

开启vue项目发现报错
《element报Cannot read property 'disabled' of null错》

使用VS code全局搜索也没找到什么线索,后来查了资料;

这个是因为在页面中使用了el-dropdown,但是在这个标签里面没有设置它的子元素,所以会报错,在el-dropdown中添加el-dropdown-menu标签就好

    原文作者:KASON
    原文地址: https://segmentfault.com/a/1190000020289188
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞