Skip to content

Commit

Permalink
fix: computedModel的源对象还原放到下个宏任务进行
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed May 12, 2023
1 parent ff323c6 commit 8df8ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const proxyValue = <T extends Record<string | number, any> | any[]>(value
const oldV = obj[prop as keyof T];
obj[prop as keyof T] = value;
update();
obj[prop as keyof T] = oldV;
setTimeout(() => (obj[prop as keyof T] = oldV));
return true;
},
});
Expand Down

0 comments on commit 8df8ed5

Please sign in to comment.