refactor(#I1287L): 自动锁屏兼容IE语法

#Comment
comment #I1287L

#Issue
link https://gitee.com/LongbowEnterprise/dashboard/issues?id=I1287L
This commit is contained in:
Argo Zhang 2019-09-28 08:51:38 +08:00
parent 8b3ffcee03
commit 8ed9a8c15e
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ $(function () {
// 自动锁屏功能
var mousePosition = { screenX: 0, screenY: 0 };
var count = 1;
var lockScreenPeriod = Number.parseInt($('#lockScreenPeriod').val());
var lockScreenPeriod = parseInt($('#lockScreenPeriod').val());
if (typeof lockScreenPeriod === 'number' && !isNaN(lockScreenPeriod)) {
var traceMouseOrKey = window.setInterval(function () {
$(document).off('mousemove').one('mousemove', function (e) {