<el-cascader
:props="props"
clearable>
</el-cascader>
data() {
props:{
that:this,
lazy: true,
async lazyLoad (node, resolve) {
console.log(node)
console.log(this.that) //这个是vue的this
const res = await netDisk.selectDisk() // 掉接口
res.data.forEach(item=>{
item.leaf = true //false 控制右箭头的展示,是否有子集。 可前往官网查看
})
resolve(res.data)
}
}
}
}