From 6d54fb64df667c0c396fc7d74aeed9e096d95f95 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期三, 11 九月 2024 10:36:50 +0800
Subject: [PATCH] Merge branch 'v2' of ssh://47.96.225.205:29418/hmy_farmer-main into v2

---
 mixin/mixin.js |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/mixin/mixin.js b/mixin/mixin.js
index e1c5c9d..ad5ad6e 100644
--- a/mixin/mixin.js
+++ b/mixin/mixin.js
@@ -78,6 +78,10 @@
 			this.regUserName = e.detail.value; // 获取微信昵称
 		},
 
+		handleContact(e) {
+			console.log(e.detail.path)
+			console.log(e.detail.query)
+		},
 
 
 
@@ -134,6 +138,7 @@
 									idsMap[item.id] = item
 								}
 							}
+							var hasnew = false
 							for (var item of data.records) {
 								if (ids.indexOf(item.id) < 0) {
 									this.list.push(item)
@@ -141,10 +146,14 @@
 									//最好更新一下
 									idsMap[item.id] = {
 										...idsMap[item.id],
-										...item,//覆盖了
+										...item, //覆盖了
 									}
+									hasnew = true
 								}
 							}
+							if (hasnew) {
+								this.$forceUpdate()
+							}
 
 						}
 						this.page.total = data.total || 0

--
Gitblit v1.9.3