【微信分享】【已解决】vue3 在uniapp中如何配置,才能使微信小程序右上角的分享开启?共三步
三、运行到微信小程序,直接点右上角的分享。一、在要分享的页面引入。二、在该页面复制该代码。
·
一、在要分享的页面引入
import {onShareAppMessage}from '@dcloudio/uni-app'
二、在该页面复制该代码
onShareAppMessage(()=>{
return{
title:'彩虹机回收',
path:'/pages/index/index',
imageUrl:'/static/2.jpg'
}
})
三、运行到微信小程序,直接点右上角的分享。完成
更多推荐
已为社区贡献2条内容
所有评论(0)