Showing
1 changed file
with
5 additions
and
0 deletions
@@ -726,8 +726,13 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common', | @@ -726,8 +726,13 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common', | ||
726 | autoFlush(autoBtn); | 726 | autoFlush(autoBtn); |
727 | }); | 727 | }); |
728 | 728 | ||
729 | + try { | ||
729 | var auto = JSON.parse(localStorage.getItem('alarm_auto__flush')); | 730 | var auto = JSON.parse(localStorage.getItem('alarm_auto__flush')); |
730 | autoBtn.find('input').prop('checked', auto); | 731 | autoBtn.find('input').prop('checked', auto); |
732 | + } catch (e) { | ||
733 | + console.log(e); | ||
734 | + } | ||
735 | + | ||
731 | 736 | ||
732 | autoFlush(autoBtn); | 737 | autoFlush(autoBtn); |
733 | 738 |
-
Please register or login to post a comment