Browse Source

修改bug

zhejiushizhuce 1 year ago
parent
commit
e51e22aea3
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/layout/Footer/index.jsx

+ 8 - 2
src/layout/Footer/index.jsx

@@ -4,11 +4,17 @@ import {ROUTE_PATH} from "@constants/routes";
 import React, {useEffect, useRef} from "react";
 import {stringFormat} from "@utils/helpers";
 const i18n=global.i18n;
+const objInfo={
+    isInit:false
+}
 const Footer=()=>{
     const anjRef = useRef(null);
     useEffect(()=>{
-        if(window.anj_75ede18c_13d5_4b2c_ae69_043e5c00f765){
-            window.anj_75ede18c_13d5_4b2c_ae69_043e5c00f765.init()
+        if (!objInfo.isInit){
+            if(window.anj_75ede18c_13d5_4b2c_ae69_043e5c00f765){
+                window.anj_75ede18c_13d5_4b2c_ae69_043e5c00f765.init()
+                objInfo.isInit=true;
+            }
         }
     },[])
     useEffect(()=>{