Skip to content

Commit

Permalink
调整自动登录脚本.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoZ committed Jan 13, 2019
1 parent 9676afa commit 044e31c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,13 @@ def apply_actions(self, host):
$('.login-tab-r').click();
$('#loginname').val('{username}');
$('#nloginpwd').val('{password}');
$('#autoLogin').prop('checked', true);
if ({auto_submit}) $('#loginsubmit').click();
if ({auto_submit}) {{
// 等待页面相关组件加载完成,如 jdSlide 等
setTimeout(function() {{
$('#loginsubmit').click();
}}, 1000);
}}
"""

if code:
Expand Down

0 comments on commit 044e31c

Please sign in to comment.