瀏覽代碼

fix: 修改分享参数

lvkun996 1 年之前
父節點
當前提交
e2c9fcb101
共有 3 個文件被更改,包括 2 次插入2 次删除
  1. 二進制
      dist.zip
  2. 1 1
      src/store/modules/customize.ts
  3. 1 1
      src/utils/index.ts

二進制
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 });
 }