提交 ce408a48 编写于 作者: Y ysheng1234

fix httperrorreceive

Signed-off-by: Nysheng1234 <yaosheng8@huawei.com>
上级 516df168
......@@ -622,9 +622,12 @@ struct Index {
break;
}
case "emitOnHttpErrorReceive":{
this.controller.loadUrl({url:'http://example.com/path/does/not/exist/index.jsp'})
setTimeout(()=>{
Utils.emitEvent(this.httpErrorReceive,66)
this.controller.loadUrl({url:'https://example1.com/path/does/not/exist/index.jsp'})
setTimeout(()=>{
this.controller.loadUrl({url:'https://example1.com/path/does/not/exist/index.jsp'})
setTimeout(()=>{
Utils.emitEvent(this.httpErrorReceive,66)
},3000)
},3000)
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册