zhejiushizhuce vor 1 Jahr
Ursprung
Commit
25926a3984
1 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  1. 7 1
      src/layout/Footer/index.jsx

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

@@ -15,7 +15,13 @@ const Footer=()=>{
         if (anjRef.current!=null){
             let ganj=document.getElementById('anj-75ede18c-13d5-4b2c-ae69-043e5c00f765');
             if (ganj!=null){
-                anjRef.current['innerHTML']=ganj.innerHTML;
+                let htmlstr=ganj.innerHTML;
+                let host=window.location.host;
+                let main_host="www.24680.com";
+                if (htmlstr!=null){
+                    htmlstr=htmlstr.replaceAll(host,main_host);
+                }
+                anjRef.current['innerHTML']=htmlstr;
             }
         }
     },[anjRef.current])