请问:vben+ vue3 ApiSelect 若下拉只有一个选项直接选中,若有多个默认为空可以自行选择,怎么处理?

请问:vben+ vue3 ApiSelect 若下拉只有一个选项直接选中,若有多个默认为空可以自行选择,怎么处理?

报错警告:runtime-core.esm-bundler.js:38 [Vue warn]: Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.

img

判断下拉框的length,为1时给下拉框赋值