From 34a138b3c3e82ac56aa2a9243c336bf9da25fca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Stanislav?= Date: Wed, 11 Oct 2023 08:59:42 +0200 Subject: [PATCH] fix(compat): return value of vue compat set() According to https://v2.vuejs.org/v2/api/#Vue-set, Returns: the set value. --- packages/runtime-core/src/compat/instance.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/runtime-core/src/compat/instance.ts b/packages/runtime-core/src/compat/instance.ts index 141f0bf0a0f..e6baeda6a8e 100644 --- a/packages/runtime-core/src/compat/instance.ts +++ b/packages/runtime-core/src/compat/instance.ts @@ -58,6 +58,7 @@ export interface LegacyPublicProperties { export function installCompatInstanceProperties(map: PublicPropertiesMap) { const set = (target: any, key: any, val: any) => { target[key] = val + return target[key] } const del = (target: any, key: any) => {