소스 검색

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