给select控件增加key属性

This commit is contained in:
jishenghua
2024-08-04 23:25:20 +08:00
parent 1a2a7084ad
commit 0ae0ca37fe
7 changed files with 7 additions and 7 deletions

View File

@@ -14,7 +14,7 @@
showSearch allow-clear style="width: 100%"
placeholder="请选择仓库"
v-model="queryParam.depotId">
<a-select-option v-for="(depot,index) in depotList" :value="depot.id">
<a-select-option v-for="(depot,index) in depotList" :value="depot.id" :key="index">
{{ depot.depotName }}
</a-select-option>
</a-select>