修复两个问题,获取功率记录过早和大屏幕自动隐藏边栏所导致的bug

This commit is contained in:
2ndacc
2020-02-21 23:46:29 +08:00
parent 525d893e98
commit 08e304d5ac
2 changed files with 243 additions and 239 deletions

View File

@@ -298,7 +298,7 @@
function ShowPage(id) {
$(".page").hide();
$(".page"+id).show();
$(".mdl-layout__obfuscator").click()
$(".is-small-screen >> .mdl-layout__drawer-button").click()
}
ShowPage(1);
@@ -343,7 +343,9 @@
error: AjaxErr
});
}
GetPowerRecord();
$(document).ready(function(){
GetPowerRecord();
})
</script>
</body>
</html>