<el-cascader :props="props" placeholder="请选择户籍所在地" v-model="houseaddress" ref="houseaddressRef" @change="houseaddressChange" style="width:100%" clearable />
const houseaddressRef=ref();
const houseAddressAll=ref();//选中的文字内容
const houseaddressChange=()=>{ if(houseaddressRef.value.getCheckedNodes().length>0){ houseAddressAll.value= houseaddressRef.value.getCheckedNodes()[0].pathLabels.join(",").replaceAll(",",""); } }