[solved] how to get Mini Program global object by mpvue

Business background

mpvue developer Mini Program
after a successful login, token > should be stored in the global variable
. When calling the page, use

.

perplexed

print this in created hook No related attribute
not even this can"t be printed in onShow and onLoad cycles

question

mpvue where do I store the objects in the global app ?

Mar.02,2021

getApp ()

Menu