点击的时候第一层出现了但是点击指南或者资源的时候,他就报错Cannot read property 'getElementsByClassName' of undefined
<el-cascader
:options="options2"
@change="handleItemChange"
v-model="filters.chapterid"
:props="props"
:show-all-levels="false"
placeholder="知识点"
></el-cascader>
data里面定义:
options2: [],
props: {
label: 'label',
children: 'children'
},