1 .首先,在需要获取onLaunch请求的页面上添加接收数据的回调函数ifdata )//进入页面时,onLaunch异步请求已请求成功else )//异步请求未请求成功在回调函数中请求数据getApp ).userinforeadycallback=RES={ console.log ) RES, ‘ userinforeadycallback ‘ ) }2.onlaunch有回调时回调函数get userinfo user _ id : this.$ store.getters.userinfo 将数据传递到user _ id 3360 b 00064 a 760758610 e21 b 11 b的’ get userinfo ‘ this.$ store.dispatch ‘ set _ u u userinfo ‘,res ) if )