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

fix: instanceof时去掉Array多余的泛型

上级 b5e75b65
......@@ -274,7 +274,7 @@
success: (res) => {
const requestCookie = (res.data as UTSJSONObject).getJSON("data")?.getAny("requestCookie")
console.log("requestCookie ", requestCookie);
if(requestCookie instanceof Array<unknown>){
if(requestCookie instanceof Array){
this.jest_result = needCookie ? requestCookie.length > 0 : requestCookie.length == 0
}else{
this.jest_result = needCookie ? (requestCookie as UTSJSONObject).toMap().size > 0 : (requestCookie as UTSJSONObject).toMap().size == 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册