【vue】Cannot read property ‘level‘ of null“

前言

报错信息如下:
Cannot read property ‘level’ of null"
参考文档:
https://blog.csdn.net/qq_37253540/article/details/100730223
看到上面这个文章的描述,我想到了以前看过的组件销毁重置相关的文章:
https://blog.csdn.net/s1441101265/article/details/110433805
然后根据逻辑,给el-cascader组件加了个v-if 判断,就解决了

猜你喜欢

转载自blog.csdn.net/s1441101265/article/details/114276382