zhejiushizhuce 1 年之前
父節點
當前提交
de8fa7ccbc
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      src/layout/Footer/index.jsx

+ 1 - 1
src/layout/Footer/index.jsx

@@ -24,7 +24,7 @@ const Footer=()=>{
                 let htmlstr=ganj.innerHTML;
                 let host=window.location.host;
                 let main_host="www.24680.com";
-                if (htmlstr!=null){
+                if (htmlstr!=null&&htmlstr.indexOf(main_host)===-1){
                     htmlstr=htmlstr.replaceAll(host,main_host);
                 }
                 anjRef.current['innerHTML']=htmlstr;