diff --git a/src/core/observer/index.js b/src/core/observer/index.js index 35469aaf16..e373716c9f 100644 --- a/src/core/observer/index.js +++ b/src/core/observer/index.js @@ -179,6 +179,8 @@ export function defineReactive ( if (process.env.NODE_ENV !== 'production' && customSetter) { customSetter() } + // #7981: for accessor properties without setter + if (getter && !setter) return if (setter) { setter.call(obj, newVal) } else {