1
xuxueyang
2024-08-01 71c87b8273fa08c2a7e48d159b05c4160c7e749a
mixin/mixin.js
@@ -134,6 +134,7 @@
                           idsMap[item.id] = item
                        }
                     }
                     var hasnew = false
                     for (var item of data.records) {
                        if (ids.indexOf(item.id) < 0) {
                           this.list.push(item)
@@ -143,8 +144,12 @@
                              ...idsMap[item.id],
                              ...item,//覆盖了
                           }
                           hasnew = true
                        }
                     }
                     if(hasnew){
                        this.$forceUpdate()
                     }
                  }
                  this.page.total = data.total || 0