jdf2e / nutui

京东风格的移动端 Vue 组件库,支持多端小程序(A Vue.js UI Toolkit for Mobile Web)
https://nutui.jd.com
MIT License
6.01k stars 814 forks source link

fix: cannot read properties of undefined (reading 'animatedTime') #3045

Closed 2977938133 closed 2 months ago

2977938133 commented 2 months ago

这个 PR 做了什么? (简要描述所做更改) 这个 PR 添加了对 inject 返回结果的空值判断,避免了 animatedTime、activeKey 读取错误。 这个 PR 是什么类型? (至少选择一个)

这个 PR 涉及以下平台:

这个 PR 是否已自测:

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 84.04%. Comparing base (81cc346) to head (e8613d1). Report is 2 commits behind head on v4.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## v4 #3045 +/- ## ========================================== + Coverage 83.98% 84.04% +0.06% ========================================== Files 221 221 Lines 23121 23121 Branches 2486 2491 +5 ========================================== + Hits 19418 19432 +14 + Misses 3685 3671 -14 Partials 18 18 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.