wip: proper handling of value assignment in reactive object

This commit is contained in:
Evan You 2019-08-13 11:30:28 -04:00
parent 2fc0d599db
commit 09141b56fd

View File

@ -42,7 +42,7 @@ function set(
value = toRaw(value)
const hadKey = hasOwnProperty.call(target, key)
const oldValue = target[key]
if (isValue(oldValue)) {
if (isValue(oldValue) && !isValue(value)) {
oldValue.value = value
return true
}