张延森 3 gadus atpakaļ
vecāks
revīzija
7d9524c7b0
2 mainītis faili ar 8 papildinājumiem un 2 dzēšanām
  1. 1
    1
      config/prod.js
  2. 7
    1
      src/pages/index/newsDetail/index.jsx

+ 1
- 1
config/prod.js Parādīt failu

@@ -10,7 +10,7 @@ module.exports = {
10 10
     OSS_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
11 11
     OSS_FAST_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
12 12
     ICON_FONT: '"https://yz-websit.oss-cn-hangzhou.aliyuncs.com/xlk/css/iconfont.ttf"',
13
-    Version: '"V0.0.83-20211130"'
13
+    Version: '"V0.0.86-20211220"'
14 14
   },
15 15
   mini: {},
16 16
   h5: {

+ 7
- 1
src/pages/index/newsDetail/index.jsx Parādīt failu

@@ -15,7 +15,7 @@ export default withLayout((props) => {
15 15
   const { router, shareContent, person, trackData, page, showShareTimeline, setNavigationBarTitle } = props
16 16
   const { id } = props.router.params;
17 17
 
18
-  const paramsRef = useParams({person, from: `${page.type}_share`})
18
+  const paramsRef = useParams({id, person, from: `${page.type}_share`})
19 19
   const [data, setData] = useState(null);
20 20
 
21 21
 
@@ -26,6 +26,12 @@ export default withLayout((props) => {
26 26
   });
27 27
   
28 28
   const fullTrackData = { ...trackData, buildingId: data?.buildingId };
29
+
30
+  console.log('0000000000000000', {
31
+    title: shareContent.shareContentTitle || data?.newsName,
32
+    path: `${router.path}?${paramsRef.current}`,
33
+    image: shareContent.shareContentImg,
34
+  })
29 35
   
30 36
   useShare(
31 37
     {