shaogen1995 1 rok pred
rodič
commit
c5ae89be72
1 zmenil súbory, kde vykonal 5 pridanie a 2 odobranie
  1. 5 2
      pc/src/pages/A0Map/index.tsx

+ 5 - 2
pc/src/pages/A0Map/index.tsx

@@ -18,7 +18,10 @@ type Props = {
 
 function A0Map({ type, sonChaneType }: Props) {
   useEffect(() => {
-    if (type === 3) setMapSon(0);
+    // console.log(123,type);
+
+    // if (type === 3) setMapSon(0);
+    if (type !== 2) setMapSon(0);
   }, [type]);
 
   // 控制二级地图的显示
@@ -85,7 +88,7 @@ function A0Map({ type, sonChaneType }: Props) {
           <div
             onClick={() => {
               window.open(baseURL + v.link);
-              // setMapSon(v.id);
+              // setMapSon(v.imgId);
               sonChaneType(3);
             }}
             key={v.id}