浏览代码

分享朋友圈保底 title

harry 1 年之前
父节点
当前提交
07b74f8e15
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/shareHelper/index.ts

+ 1 - 1
src/shareHelper/index.ts

@@ -137,7 +137,7 @@ export function shareTimeline({ video, messageActionType = 'videoShareH5', rootP
     var msgPath = detailPath.replace(/%23/g, '_')
     return {
         session_from: JSON.stringify(session_from),
-        send_msg_title: video.shareTitle,
+        send_msg_title: video.shareTitle || video.title,
         send_msg_img: 'https://weapppiccdn.yishihui.com/wxicon/wxOther/image/contact-share-h5-background-image.png',
         send_msg_path: '/'.concat(msgPath)
     }