antd vue select下拉选择回显数据问题

当回显customerType = 1004 的时候为什么不显示‘站内’框里显示‘1004’ ?
而且我打印了回显数据id是number,数组中的id也是number
image.png

   data:[
       {
           id:1004,
           typeName:'站内'
       },
       {
           id:1005,
           typeName:'站外'
       }
   ]


    <a-select v-model="form.customerType">
       <a-select-option v-for="(item, index) in customerTypeMap" :value="item.id" :key="index">{{ item.typeName }}</a-select-option>
    </a-select>
    
    
阅读 6k
1 个回答

customerTypeMap中的数据是否正常。
value的值类型是否和form.customerType相同?

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题