提交 189c8d14 编写于 作者: fxy060608's avatar fxy060608

fix(v3): properties

上级 cccc1e41
......@@ -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);
}
// 触发渲染
......
......@@ -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)
}
// 触发渲染
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册