Skip to content

Commit

Permalink
Merge pull request #15951 from guoenxuan/jd-main
Browse files Browse the repository at this point in the history
fix: [harmony-hybrid]修复dev模式下桥接到原生侧的同步API崩溃问题
  • Loading branch information
qican777 committed Jun 21, 2024
2 parents 75b131a + a5e0d79 commit f852d5b
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 f852d5b

Please sign in to comment.