diff --git a/Web12306/js/ui/chat/chatframe.js b/Web12306/js/ui/chat/chatframe.js index b78713f..d9ad7ba 100644 --- a/Web12306/js/ui/chat/chatframe.js +++ b/Web12306/js/ui/chat/chatframe.js @@ -76,7 +76,7 @@ (function ui() { $("#chat_float_tip").click(showServerList); })(); - + servernode.loadServers(); setTimeout(function() { servernode.loadServers(); }, 1000 * 60 * 11); diff --git a/Web12306/js/ui/ui-sysnotice.js b/Web12306/js/ui/ui-sysnotice.js index fb9fc60..b7d740c 100644 --- a/Web12306/js/ui/ui-sysnotice.js +++ b/Web12306/js/ui/ui-sysnotice.js @@ -40,7 +40,7 @@ $("#index-tip-body").find(".order-num").html("0").hide(); //取最新的几条通知 var shownNotice = _.first(savedNotice.items, data.sysNoticeMaxShowCount); - if (!shownNotice.length) { + if (!shownNotice || !shownNotice.length) { shownNotice = [{ title: "暂时没有系统公告" }]; } $(".search-tips-container").html(noticeTemplate(shownNotice));