Browse Source

信息修改

1002884655 3 years ago
parent
commit
f08c4f5d7f
1 changed files with 10 additions and 10 deletions
  1. 10
    10
      src/pages/index/activityDetail/index.jsx

+ 10
- 10
src/pages/index/activityDetail/index.jsx View File

66
         eventType: detail.type || 'dymic',
66
         eventType: detail.type || 'dymic',
67
         targetType: detail.type || 'dymic'
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
   }, [trackData, detail])
80
   }, [trackData, detail])
71
 
81
 
85
     ...trackData,
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
   useEffect(() => {
98
   useEffect(() => {
99
     if (id) {
99
     if (id) {
100
       getDetail(id);
100
       getDetail(id);