vue-vben-admin 使用setFieldsValue给select赋值,传的是int类型,赋值后是varchar类型。

mec1mxoz  于 2023-03-19  发布在  其他
关注(0)|答案(1)|浏览(649)

⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.

  • Read the docs .
  • Make sure the code is up to date. (Some bugs have been fixed in the latest code)
  • This is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

Describe the bug

select组件value是number类型,使用setFieldsValue赋值传的是int类型,实际赋值的是varchar类型,导致无法默认选项

Reproduction

setFieldsValue({
          addressId: 8,  //实际赋值  '8'
     });

相关问题