How does the mpvue Mini Program framework achieve demand loading functions like those in vue-router?

the home page needs to be logged in, and the page forwarded to a friend also requires a friend to log in. Without any processing, login will be called twice.
what if I don"t want to load the forwarded page?

Mar.20,2021
Menu