1***@qq.com
1***@qq.com
  • 发布:2023-09-27 18:15
  • 更新:2023-09-27 18:25
  • 阅读:101

编译小程序onShareAppMessages能分享成功 但设置的参数没效果

分类:uni-app
onShareAppMessage(res) {  
        return {  
            title: this.info.title,  
            imageUrl: this.surfacePlot,  
            path: '/knowledge_packages/knowledge/details?id=' + this.info?.repositoryId,  
            mpPath: '/knowledge_packages/knowledge/details?id=' + this.info?.repositoryId  
        }  
    }  

设置的title、imageUrl,path 都是有参数的 都没效果 但是能正常分享请问是什么原因

2023-09-27 18:15 负责人:无 分享
已邀请:
爱豆豆

爱豆豆 - 办法总比困难多

onLoad中没接收到参数吗?还是说onShareAppMessage中你的this.info.title这些参数是空的?

要回复问题请先登录注册