The problem of wepy accessing global variables

I want to set a global variable userInfo, in app.wpy and call

in the mine page.

clipboard.png

can be printed out, but I don"t know how to call it on other pages. I use the wepy framework, and some of the code is written differently. Ask for advice

.
Feb.28,2021
In

page this.$parent.globalData.userInfo get


document, it is clear that the App object can be obtained through this.$parent in the page instance.
is equivalent to the original app = getApp () to get app

Menu