Fix:‘TypeError: responseCookies.replace is not a function’#68
Open
Limonica27 wants to merge 1 commit intocharleslo1:masterfrom
Open
Fix:‘TypeError: responseCookies.replace is not a function’#68Limonica27 wants to merge 1 commit intocharleslo1:masterfrom
Limonica27 wants to merge 1 commit intocharleslo1:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
作者你好:



在使用weapp-cookie库中遇到一个问题,已经查询到问题原因并进行兼容处理
是在uniapp项目中使用编译到微信小程序,调用
uploadFile在ios真机下取到的responseCookies是一个数组,在调用replace出错了经过正常调试发现,接口的
response确实返回了三个Set-Cookie,但是在大部分情机型况下responseCookies都是‘字符串+,’拼接好,但在在ios真机下没有进行字符串处理所以我们这里手动调用一下toString()就可以了