切换系统后,增加cookie缓存,支持刷新页面
This commit is contained in:
parent
09b82a4306
commit
7eb0afe1bd
|
@ -257,6 +257,7 @@
|
|||
<script src="plugins/device.min.js"></script>
|
||||
<script src="plugins/fullPage/jquery.fullPage.min.js"></script>
|
||||
<script src="plugins/fullPage/jquery.jdirk.min.js"></script>
|
||||
<script src="plugins/jquery.cookie.js"></script>
|
||||
|
||||
<script src="js/admin.js"></script>
|
||||
</body>
|
||||
|
|
|
@ -36,10 +36,21 @@ $(function() {
|
|||
$('.system_menus').hide(0, function () {
|
||||
$('.system_' + systemid).show();
|
||||
});
|
||||
$('#system_title').text(systemtitle);
|
||||
$('body').attr("id", systemname);
|
||||
$('#system_title').text(systemtitle);
|
||||
$.cookie('zheng-upms-systemid', systemid, { expires: 7, path: '/' });
|
||||
$.cookie('zheng-upms-systemname', systemname, { expires: 7, path: '/' });
|
||||
$.cookie('zheng-upms-systemtitle', systemtitle, { expires: 7, path: '/' });
|
||||
});
|
||||
// 显示cookie菜单
|
||||
var systemid = $.cookie('zheng-upms-systemid') || 1;
|
||||
var systemname = $.cookie('zheng-upms-systemname') || 'zheng-upms';
|
||||
var systemtitle = $.cookie('zheng-upms-systemtitle') || '权限管理系统';
|
||||
$('.system_menus').hide(0, function () {
|
||||
$('.system_' + systemid).show();
|
||||
});
|
||||
$('body').attr('id', systemname);
|
||||
$('#system_title').text(systemtitle);
|
||||
});
|
||||
// iframe高度自适应
|
||||
function changeFrameHeight(ifm) {
|
||||
|
|
Loading…
Reference in New Issue