From fafc9588112b1081c59927c75fa360e70b553bac Mon Sep 17 00:00:00 2001 From: yiqiu Date: Fri, 21 Nov 2025 13:42:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=8E=E6=96=B0=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=8E=B7=E5=8F=96=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/common.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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();