Today, when using the components of ant design, the encapsulated event already contains parameters, and I need to pass the index in the event to judge the event of the first element clicked.
After querying the data results
<a-tree-select
:disabled="!items.change"
size="small"
:value="items.departmentId"
:replace-fields="replaceFields"
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
:tree-data="treeData"
@select="(value, node)=>{changeItemOrg( value, node, index)}"
placeholder="组织"
/>