diff --git a/common/common.js b/common/common.js index 11d3a30..801c120 100644 --- a/common/common.js +++ b/common/common.js @@ -280,14 +280,11 @@ $(function () { $("#shopping-cart").click(function () { location.href = "/cart/shoppingCar.htm"; }); - } - function initFooter() { - if (!sessionStorage.commentData) { - getCommentInfo(); - } else { - setCommData(); - } - } + } + function initFooter() { + // 始终从后端获取最新通用配置,避免缓存导致配置不生效 + getCommentInfo(); + } // 首页渲染 // $("#header").load("/web/default/public/header.html", function () { // initHeader();