diff --git a/packages/reactivity/src/baseHandlers.ts b/packages/reactivity/src/baseHandlers.ts index a5cbe15a..cdb9f7b1 100644 --- a/packages/reactivity/src/baseHandlers.ts +++ b/packages/reactivity/src/baseHandlers.ts @@ -43,7 +43,7 @@ function set( const hadKey = hasOwnProperty.call(target, key) const oldValue = target[key] if (isValue(oldValue)) { - oldValue.value = isValue(value) ? value.value : value + oldValue.value = value return true } const result = Reflect.set(target, key, value, receiver)