修改BUG:缓存时间写死了600秒,更改为配置的Interval

This commit is contained in:
Argo-Lenovo 2017-04-05 11:52:36 +08:00
parent 32224abd46
commit a6e179c726
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@
default:
break;
}
return $.format(html, ele.Interval, ele.Key, ele.Desc, ele.Value, css, options.url, Math.max(1, 600 - Math.round((new Date() - new Date(ele.CreateTime)) / 1000)));
return $.format(html, ele.Interval, ele.Key, ele.Desc, ele.Value, css, options.url, Math.max(0, ele.Interval - Math.round((new Date() - new Date(ele.CreateTime)) / 1000)));
}).join('');
$sortable.append($.format('<li class="title">{0}-{1}</li>', options.item.Desc, options.item.Key));
$sortable.append(content);