Kaynağa Gözat

fix: 修改分享参数

lvkun996 1 yıl önce
ebeveyn
işleme
e2c9fcb101
3 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. BIN
      dist.zip
  2. 1 1
      src/store/modules/customize.ts
  3. 1 1
      src/utils/index.ts

BIN
dist.zip


+ 1 - 1
src/store/modules/customize.ts

@@ -143,7 +143,7 @@ export default defineStore("customize", () => {
   }
   async function sendSingleRecord(params: { babyId: string; id: string; recordType: string }) {
     const { status } = await sendSingleRecordRequest(params);
-    if (status === 200) {
+    if (status === 200) { 
       showToast("发送成功");
       singleRecord.value.sendReport = 1;
     }

+ 1 - 1
src/utils/index.ts

@@ -219,5 +219,5 @@ export function shareToFriendForReward(title: string, imgUrl: string, inviteCode
  * @param description 分享描述
  */
 export function shareToWechat(image: string, title: string, scene: 0 | 1, description: string, url: string) {
-  callAppFc("shareToWechat", { image, title, scene, description, url });
+  callAppFc("shareToWechatWeb", { thumb: image, title, scene, description, url });
 }