代码:
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事件