From: Vít Stanislav Date: Thu, 19 Oct 2023 12:58:59 +0000 (+0200) Subject: fix(compat): return value of vue compat set() (#9377) X-Git-Tag: v3.3.5~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e3c2d699f694d9500ddee78571172a24f0e3b17a;p=thirdparty%2Fvuejs%2Fcore.git fix(compat): return value of vue compat set() (#9377) According to https://v2.vuejs.org/v2/api/#Vue-set, Returns: the set value. --- diff --git a/packages/runtime-core/src/compat/instance.ts b/packages/runtime-core/src/compat/instance.ts index 141f0bf0a0..e6baeda6a8 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) => {