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