diff --git a/packages/runtime-core/src/apiWatch.ts b/packages/runtime-core/src/apiWatch.ts index 13e5ab02774..88dbd717591 100644 --- a/packages/runtime-core/src/apiWatch.ts +++ b/packages/runtime-core/src/apiWatch.ts @@ -152,7 +152,7 @@ function doWatch( } else if (cb) { // getter with cb getter = () => - callWithErrorHandling(source, instance, ErrorCodes.WATCH_GETTER) + callWithErrorHandling(cb, instance, ErrorCodes.WATCH_GETTER) } else { // no cb -> simple effect getter = () => {