shaogen1995 2 năm trước cách đây
mục cha
commit
3964cfbd0c
2 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. BIN
      src/assets/img/toTop.png
  2. 3 0
      src/pages/A3GoodsM/index.tsx

BIN
src/assets/img/toTop.png


+ 3 - 0
src/pages/A3GoodsM/index.tsx

@@ -80,6 +80,9 @@ function A3GoodsM() {
   const fullTopFu = useCallback(() => {
     if (scrollRef.current) {
       scrollRef.current.scrollTop = 0;
+      window.setTimeout(() => {
+        if (scrollRef.current) scrollRef.current.scrollTop = 6;
+      }, 100);
     }
   }, []);