Skip to content

Commit

Permalink
fix(compat): return value of vue compat set() (vuejs#9377)
Browse files Browse the repository at this point in the history
According to https://v2.vuejs.org/v2/api/#Vue-set, Returns: the set value.
  • Loading branch information
slaweet committed Oct 19, 2023
1 parent 8611874 commit e3c2d69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/runtime-core/src/compat/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit e3c2d69

Please sign in to comment.