fix InputKeyValuePairs can not remove the first item

This commit is contained in:
songwanli2025@163.com 2019-08-14 11:21:31 +08:00
parent 969cbf79aa
commit e00515d840

View File

@ -120,7 +120,7 @@ export default {
this.value.push({})
},
remove (index) {
if (index === 0) {
if (index === 0 && this.value.length <= 1) {
Object.keys(this.value[0]).forEach((key) => {
let type = typeof (this.value[0][key])
switch (type) {