From 23c8c021020ff3cb376674192dd7fffee55d2c54 Mon Sep 17 00:00:00 2001 From: jian Date: Thu, 1 Jun 2023 11:44:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/watch-order.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/watch-order.html b/examples/watch-order.html index 74c632a1e..7f85acdd6 100644 --- a/examples/watch-order.html +++ b/examples/watch-order.html @@ -16,7 +16,7 @@ widget: { name: "触发arr和dims变化", arr: [], - dims: {}, + dims: [], } }; }, @@ -84,11 +84,12 @@ addArrFirst: function () { // 修改arr在前,先触发arr的watch 再触发widget.**的监听 this.model.widget.arr.push(BI.UUID()); - Fix.set(this.model.widget.dims, BI.UUID(), {}); + this.model.widget.dims.push(BI.UUID()); + }, addDimFirst: function () { // 修改dim在前先执行 widget.** 再出发arr的watch - Fix.set(this.model.widget.dims, BI.UUID(), {}); + this.model.widget.dims.push(BI.UUID()); this.model.widget.arr.push(BI.UUID()); } }