onShareAppMessage() { const promise = new Promise(resolve => { request({ api: '请求名', method: 'POST', data: { "data": {} } }).then(res => { resolve({ title: '你要的标题', path: '/页面?code=' + res.code }) }) }) return {promise} }
标签:uniapp,code,微信,后调,promise,onShareAppMessage,res,data From: https://www.cnblogs.com/zhangyouwu/p/17446148.html