Skip to content

Commit e3c2d69

Browse files
authored
fix(compat): return value of vue compat set() (#9377)
According to https://v2.vuejs.org/v2/api/#Vue-set, Returns: the set value.
1 parent 8611874 commit e3c2d69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/runtime-core/src/compat/instance.ts

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export interface LegacyPublicProperties {
5858
export function installCompatInstanceProperties(map: PublicPropertiesMap) {
5959
const set = (target: any, key: any, val: any) => {
6060
target[key] = val
61+
return target[key]
6162
}
6263

6364
const del = (target: any, key: any) => {

0 commit comments

Comments
 (0)