Skip to content

Commit

Permalink
fix: 修复dev模式下桥接到原生侧的同步API崩溃问题
Browse files Browse the repository at this point in the history
  • Loading branch information
guoenxuan committed Jun 21, 2024
1 parent ff0279b commit 1c3f43c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export function syncApiCache (cacheTime: number = 500) : MethodDecorator {
lastCall = now
return lastResult
}
lastResult = origMethod.apply(this, args)
// dev模式下origMethod为 undefined
lastResult = origMethod?.apply(this, args)
lastCall = now
return lastResult
}
Expand Down

0 comments on commit 1c3f43c

Please sign in to comment.