The isAuth method in index.js in utils
IsAuth is introduced in main.js and registered globally
The vue page uses v- in the template if calls isAuth method
The method is called with v-if in the template, introduced in main.js and mounted globally.
Guess you like
Origin blog.csdn.net/maoge_666/article/details/133669004
Ranking