浏览代码

2023-08-29

weirenchun 2 年之前
父节点
当前提交
2f0c7736ee
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/views/project/componens/info6.vue

+ 3 - 2
src/views/project/componens/info6.vue

@@ -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