WechatApp

uniapp onLaunch executes onLoad after obtaining openid

When developing a front-end project with uni-app, you will encounter the need to request the interface to return the result in onLaunch, and this result may be used in the onLoad of each page of the project. For example, the WeChat applet is obtained after logging in in onLaunch openid and get the token, each page of the project needs to bring the token to request other interfaces