Commit b15ac77c authored by hbcui1984's avatar hbcui1984

解决hello mui中第二次打开关于页面失败的问题

parent a3c96783
...@@ -139,16 +139,16 @@ ...@@ -139,16 +139,16 @@
if (subWebview == null) { if (subWebview == null) {
//获取共用父窗体 //获取共用父窗体
template = plus.webview.getWebviewById("default-main"); template = plus.webview.getWebviewById("default-main");
if(template){ }
subWebview = template.children()[0]; if(template){
subWebview.loadURL('examples/info.html'); subWebview = template.children()[0];
//修改共用父模板的标题 subWebview.loadURL('examples/info.html');
mui.fire(template, 'updateHeader', { //修改共用父模板的标题
title: '关于', mui.fire(template, 'updateHeader', {
showMenu: false title: '关于',
}); showMenu: false
template.show('slide-in-right', 150); });
} template.show('slide-in-right', 150);
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment