Browse Source

11 修改x删除后赡养人数组没删除

roose 4 năm trước cách đây
mục cha
commit
4b0bca5fc0
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      pages/collectInfo/collectInfo.js

+ 4 - 0
pages/collectInfo/collectInfo.js

@@ -917,11 +917,15 @@ Page({
                 this.data.oldInfo.splice(index, 1)
                 this.data.otherInfo.splice(index, 1)
                 this.data.childInfo.splice(index, 1)
+                this.data.regularsInfo.splice(index, 1)
+                this.data.regularsInfos.splice(index, 1)
                 this.setData({
                   oldInfo: this.data.oldInfo,
                   nameArr: this.data.nameArr,
                   otherInfo: this.data.otherInfo,
                   childInfo: this.data.childInfo,
+                  regularsInfo: this.data.regularsInfo,
+                  regularsInfos: this.data.regularsInfos,
                 })
 
                 if ((this.data.activeIndex == index && this.data.activeIndex > 0) || (this.data.activeIndex > index && this.data.activeIndex > 0)) {