From e3c2d699f694d9500ddee78571172a24f0e3b17a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Stanislav?= Date: Thu, 19 Oct 2023 14:58:59 +0200 Subject: [PATCH] fix(compat): return value of vue compat set() (#9377) 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) => {