From 5fcf725c7af175d2e61f6f5902a31b2ecb9f235c Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 10 Dec 2021 23:25:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0proxy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/fix/fix.proxy.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dist/fix/fix.proxy.js b/dist/fix/fix.proxy.js index d760047bd..33e475d16 100644 --- a/dist/fix/fix.proxy.js +++ b/dist/fix/fix.proxy.js @@ -2073,7 +2073,12 @@ watchers.push(innerWatch(function () { return watchExp(_v2, _getter); }, function (newValue, oldValue) { - callback(i, newValue, oldValue, _.extend({ + // a.** 在a变化的时候不会触发change + if (oldValue !== newValue) { + return; + } + + callback(i, NaN, NaN, _.extend({ index: i })); }, _.extend({ @@ -2135,7 +2140,7 @@ changes = []; if (newValue === true) { - callback(i, undefined, undefined, _.extend({ + callback(i, NaN, NaN, _.extend({ index: i })); }