diff --git a/packages/uni-mp-weixin/dist/mp.js b/packages/uni-mp-weixin/dist/mp.js index 426517fd8447b303669af156c815d0b7d6821740..1f12686b1e63243947971856f8bc0b3821713fda 100644 --- a/packages/uni-mp-weixin/dist/mp.js +++ b/packages/uni-mp-weixin/dist/mp.js @@ -508,9 +508,9 @@ function initProperties (vm, instanceData) { /* eslint-disable no-self-compare */ if (newVal === value || (newVal !== newVal && value !== value)) { return - } + } + value = newVal; if (observer) { - value = newVal; observe(observer, vm, newVal, oldVal); } // 触发渲染 diff --git a/src/core/runtime/mp/polyfill/state/properties.js b/src/core/runtime/mp/polyfill/state/properties.js index 0d55c3aae22f3f8ae7e9b1c6913d1d6fab9a96f5..174eca6211adc6d1cc3f7de6fcdc8bec43cd022b 100644 --- a/src/core/runtime/mp/polyfill/state/properties.js +++ b/src/core/runtime/mp/polyfill/state/properties.js @@ -84,9 +84,9 @@ export function initProperties (vm, instanceData) { /* eslint-disable no-self-compare */ if (newVal === value || (newVal !== newVal && value !== value)) { return - } + } + value = newVal if (observer) { - value = newVal observe(observer, vm, newVal, oldVal) } // 触发渲染