Parcourir la source

🐛热门馆藏 下拉框参数问题

shaogen1995 il y a 2 ans
Parent
commit
b11d406100
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      houtai/src/pages/A1Hot/index.tsx

+ 2 - 2
houtai/src/pages/A1Hot/index.tsx

@@ -146,7 +146,7 @@ function Hot() {
 
 
     const res3 = await getHotGoodsAPI(
     const res3 = await getHotGoodsAPI(
       select1Ref.current,
       select1Ref.current,
-      select2Ref.current ? select2Ref.current : "visit"
+      select3Ref.current ? select3Ref.current : "visit"
     );
     );
     const data3: HotData1Type[] = res3.data;
     const data3: HotData1Type[] = res3.data;
 
 
@@ -179,7 +179,7 @@ function Hot() {
     // console.log("3获取馆藏数据", select1Ref.current, select3Ref.current);
     // console.log("3获取馆藏数据", select1Ref.current, select3Ref.current);
     const res = await getHotGoodsAPI(
     const res = await getHotGoodsAPI(
       select1Ref.current,
       select1Ref.current,
-      select2Ref.current ? select2Ref.current : "visit"
+      select3Ref.current ? select3Ref.current : "visit"
     );
     );
     const data: HotData1Type[] = res.data;
     const data: HotData1Type[] = res.data;