Skip to content

Commit

Permalink
fix(reactive-vue): fix vue3.26 error (#2673)
Browse files Browse the repository at this point in the history
  • Loading branch information
MisicDemone committed Dec 24, 2021
1 parent 31bc258 commit 03e9e7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/reactive-vue/src/hooks/useObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export const useObserver = () => {

Object.defineProperty(vm, 'update', {
get() {
return vm['_updateEffect']
// https://github.com/alibaba/formily/issues/2655
return vm['_updateEffect'] || {}
},
set(newValue) {
if (dispose) {
Expand Down

0 comments on commit 03e9e7d

Please sign in to comment.