Skip to content

Commit

Permalink
Merge pull request cuixiaorui#48 from Talljack/master
Browse files Browse the repository at this point in the history
fix: proxy set is error
  • Loading branch information
cuixiaorui authored Dec 26, 2021
2 parents 002c17e + ca905a5 commit afc41e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reactivity/src/baseHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function createSetter() {
const result = Reflect.set(target, key, value, receiver);

// 在触发 set 的时候进行触发依赖
trigger(target, "get", key);
trigger(target, "set", key);

return result;
};
Expand Down

0 comments on commit afc41e2

Please sign in to comment.