第一次扫码获取参数正常 小程序进程不退 重新扫码 怎么还能获取参数请求啊?
async onLaunch() {
await asyncTimeout(500);
let options = await wx.getEnterOptionsSync()
console.log('App launched options:');
console.log(options, options.query['scene']);
// await wxp.showLoading({ title: MESSAGES.loading, mask: true });
try {
let dataArr = []
if (options.query['scene']) {
dataArr = options.query['scene'].split('_')
}
// let dataArr = options.query['scene'].split('_')
console.log(dataArr)
let data = {
data: {
account: dataArr[0],
number: dataArr[1]
}
}
let res = await request('public/business/getBusinessInfo', data, 'POST')
这么获取的参数,之后怎么在小程序进程不退的时候 还能拿到上次获取的参数 发请求啊,在app.js中写的代码