The method is called with v-if in the template, introduced in main.js and mounted globally.

The isAuth method in index.js in utils
Insert image description here
IsAuth is introduced in main.js and registered globally
Insert image description here
The vue page uses v- in the template if calls isAuth method
Insert image description here

Guess you like

Origin blog.csdn.net/maoge_666/article/details/133669004