hookehuyr

fix

/*
* @Date: 2022-06-13 17:42:32
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-14 17:55:36
* @LastEditTime: 2022-06-14 18:29:43
* @FilePath: /tswj/src/composables/useShare.js
* @Description: 文件描述
*/
import wx from 'weixin-js-sdk';
export const sharePage = ({title = '童声无界', desc = '共读一本书,传递一份爱。', imgUrl = 'http://voice.onwall.cn/f/voice/images/weixin_logo.jpg'}) => {
console.warn(imgUrl);
const shareData = {
title, // 分享标题
desc, // 分享描述
......
......@@ -112,7 +112,7 @@ watch(
setTimeout(() => {
// TAG:微信分享
sharePage();
sharePage({});
// 测试自定义分享内容
// const title = kgInfo.value.multi_name ? `${kgInfo.value.multi_name[0]} ${kgInfo.value.multi_name[1]}` : kgInfo.value.name
// sharePage({ title, imgUrl: kgInfo.value.logo });
......