Skip to content

Conversation

newstart0514
Copy link

发生什么事情了

在我们的h5项目中,我使用了vue-jsonp,它的parmas数据是这样子的
{ userid: 111, openid: undefined }
当执行formatParams函数时,它会产生如下报错:
TypeError: Cannot read property 'constructor' of undefined

分析原因

这块时没有做兜底措施,本次修改已经处理好当value类型为any的时候,可能会出现null或undefined的情况

Copy link
Author

@newstart0514 newstart0514 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

LancerComet added a commit that referenced this pull request Jan 9, 2025
@LancerComet LancerComet mentioned this pull request Jan 9, 2025
LancerComet added a commit that referenced this pull request Jan 9, 2025
* + Update dev dependencies.

* + Update document. (#16)

* + Add array indicator option.

* + Fix for #41.
@LancerComet
Copy link
Owner

LancerComet commented Jan 9, 2025

我做了一个更严格的检查,详见 #42, 请更新 2.1.0,非常感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants