Javascript Vue.js-Element.io-Composite Key-in<;el select>;
使用framework Element.io在Vuejs中选择应用程序中的选项时,我收到一条消息,因为我想在所选选项中使用复合键:Javascript Vue.js-Element.io-Composite Key-in<;el select>;,javascript,vue.js,Javascript,Vue.js,使用framework Element.io在Vuejs中选择应用程序中的选项时,我收到一条消息,因为我想在所选选项中使用复合键: Avoid using non-primitive value as key, use string/number value instead. 我希望将数组键保存在my:key中以发送表单post,例如: :key="[item.key1,item.key2]" 例如: 我的解决方案是创建一个字符串数组: :key="`[${it
Avoid using non-primitive value as key, use string/number value instead.
我希望将数组键保存在my:key中以发送表单post,例如:
:key="[item.key1,item.key2]"
例如:
我的解决方案是创建一个字符串数组:
:key="`[${item.key1},${item.key2}]`"