代码:
const tag = ref(-1)
function change(item){
item.forEach(v => {
this.tag = v[0]
})
let filterd = item.filter(v => v[0] == this.tag)
this.selectDepartment = filterd
}
在级联选择器中添加change事件
标签:filterd,级联,element,item,tag,单选,选择器 From: https://www.cnblogs.com/shallow-dreamer/p/17181682.html