解决小程序onLaunch里面异步取值导致首页onload取值取不到的问题
把下面的方法放到onLaunch异步请求成功后的success里面
if (getCurrentPages().length != 0) {
getCurrentPages()[getCurrentPages().length - 1].onLoad()
}
解决小程序onLaunch里面异步取值导致首页onload取值取不到的问题
把下面的方法放到onLaunch异步请求成功后的success里面
if (getCurrentPages().length != 0) {
getCurrentPages()[getCurrentPages().length - 1].onLoad()
}