How does vue elementui cascade selector change event get the value of label

ele returns an array by default, corresponding to its id.
But I also want to get the label they chose

insert image description here
add a ref

   handleChange(value) {
    
    
      if (value) {
    
    
        console.log(this.$refs.cascaderAddr.getCheckedNodes()[0].pathLabels);
      }
    },

Finally the console is available
insert image description here

Guess you like

Origin blog.csdn.net/qq_38594056/article/details/116646785