@@ -213,8 +213,9 @@ export default {
return true
}
})
- this.data.splice(index, 1)
-
+ if (index != -1) {
+ this.data.splice(index, 1)
+ }
this.data.push(item)
//重新计算合计
this.allPlanInvestment = 0