uni.onAppShow 监听应用切前台事件
从别的小程序跳转回来会携带参数,通过参数做操作
主要判断 res.query是不是空对象 不然每次都会执行
uni.onAppShow((res) => {
console.log("onAppShow")
console.log(res)
if (JSON
uni.onAppShow 监听应用切前台事件
从别的小程序跳转回来会携带参数,通过参数做操作
主要判断 res.query是不是空对象 不然每次都会执行
uni.onAppShow((res) => {
console.log("onAppShow")
console.log(res)
if (JSON