Skip to content

Commit

Permalink
fix: proxy set is error
Browse files Browse the repository at this point in the history
  • Loading branch information
Talljack committed Dec 25, 2021
1 parent 3930ee8 commit ca905a5
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 ca905a5

Please sign in to comment.