- Use
filter
can filter the desired data source, for example:< :data = "item.obj.filter( v => (v.parentId==0) )">
selected data parentId 0 - When the drop-down box is
id
rendered according to the value of the drop-down box名称
, you should first bind the id to the value of the drop-down box, and then check the required drop-down list . Otherwise, when the drop-down list is first bound to the drop-down box, it may cause the display to be the id instead id corresponding to the name
Vue Miscellaneous
Guess you like
Origin blog.csdn.net/weixin_45879810/article/details/112699845
Ranking