diff --git a/arkui/ace_ets_web_dev/entry/src/main/ets/MainAbility/pages/web.ets b/arkui/ace_ets_web_dev/entry/src/main/ets/MainAbility/pages/web.ets index 630f93a1212df5df3ede663eb6fd0ebfc2c5a769..789e3649271bb7dbbfc7182edfefa8244fc92f27 100644 --- a/arkui/ace_ets_web_dev/entry/src/main/ets/MainAbility/pages/web.ets +++ b/arkui/ace_ets_web_dev/entry/src/main/ets/MainAbility/pages/web.ets @@ -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; }