onShareAppMessage的path中的变量怎么异步获取后转发
Page({
onShareAppMessage: function (res) {
let queryId = ''
wx.request({
url: '...',
method: 'GET',
success (res) {
queryId = res.queryId
},
})
return {
title: '自定义转发标题',
path: `/page/user?queryId=${queryId}`,
success (res) {
// 转发成功
},
}
}
})