소스 검색

信息修改

1002884655 3 년 전
부모
커밋
f08c4f5d7f
1개의 변경된 파일10개의 추가작업 그리고 10개의 파일을 삭제
  1. 10
    10
      src/pages/index/activityDetail/index.jsx

+ 10
- 10
src/pages/index/activityDetail/index.jsx 파일 보기

@@ -66,6 +66,16 @@ export default withLayout((props) => {
66 66
         eventType: detail.type || 'dymic',
67 67
         targetType: detail.type || 'dymic'
68 68
       })
69
+
70
+      useShare(
71
+        {
72
+          title: shareContent.shareContentTitle || detail?.title,
73
+          path: `${router.path}?${paramsRef.current}&type=${detail.type || 'dymic'}`,
74
+          // image: shareContent.shareContentImg || getImgURL(detail?.imgUrl),
75
+          image: '',
76
+        },
77
+        fullTrackData
78
+      );
69 79
     }
70 80
   }, [trackData, detail])
71 81
 
@@ -85,16 +95,6 @@ export default withLayout((props) => {
85 95
     ...trackData,
86 96
   });
87 97
 
88
-  useShare(
89
-    {
90
-      title: shareContent.shareContentTitle || detail?.title,
91
-      path: `${router.path}?${paramsRef.current}&type=${detail.type || 'dymic'}`,
92
-      // image: shareContent.shareContentImg || getImgURL(detail?.imgUrl),
93
-      image: '',
94
-    },
95
-    fullTrackData
96
-  );
97
-
98 98
   useEffect(() => {
99 99
     if (id) {
100 100
       getDetail(id);