Skip to content

Commit

Permalink
Fix:登录模板注册登录,退出后不能再次登录,需要关闭应用才能登录
Browse files Browse the repository at this point in the history
  • Loading branch information
hbcui1984 committed Oct 10, 2017
1 parent b1215b1 commit 2104aa6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions examples/login/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,17 @@ <h1 class="mui-title">登录</h1>
plus.screen.lockOrientation("portrait-primary");
var settings = app.getSettings();
var state = app.getState();
var mainPage = $.preload({
"id": 'main',
"url": 'main.html'
});
var mainPage = plus.webview.getWebviewById("main");
var main_loaded_flag = false;
if(!mainPage){
mainPage = $.preload({
"id": 'main',
"url": 'main.html'
});
}else{
main_loaded_flag = true;
}

mainPage.addEventListener("loaded",function () {
main_loaded_flag = true;
});
Expand Down

0 comments on commit 2104aa6

Please sign in to comment.