diff --git a/js/index.js b/js/index.js index 03601dd..bffd2a8 100644 --- a/js/index.js +++ b/js/index.js @@ -86,6 +86,10 @@ $(function () { isRecommend(); // 设置首页函数 function setIndexData(commentObj) { + // 清空容器,避免重复插入数据 + $("#certBox").empty(); + $("#partnerBox").empty(); + // 荣誉资质 if (commentObj.honor && commentObj.honor.length > 0) { commentObj.honor.forEach((item) => {