提交 1ed52515 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

fix: iOS-uvue中类型转换改为新写法

上级 59641bfe
...@@ -300,9 +300,9 @@ ...@@ -300,9 +300,9 @@
sslVerify: false, sslVerify: false,
withCredentials: false, withCredentials: false,
firstIpv4: false, firstIpv4: false,
success: (res) => { success: (res) => {
const requestCookie = (res.data as UTSJSONObject).getJSON("data")?.getAny("requestCookie") const requestCookie = (JSON.parse(JSON.stringify(res.data)) as UTSJSONObject).getJSON("data")?.getAny("requestCookie")
this.jest_result_data = JSON.stringify(requestCookie) this.jest_result_data = JSON.stringify(requestCookie)
if (requestCookie instanceof Array) { if (requestCookie instanceof Array) {
this.jest_result = needCookie ? requestCookie.length > 0 : requestCookie.length == 0 this.jest_result = needCookie ? requestCookie.length > 0 : requestCookie.length == 0
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册