the following article probably talks about
https://blog.csdn.net/kittyji.
there are two types of my methods
one needs to verify whether the user is logged in. If you have logged in, you can directly call the background interface, and if you do not log in, jump to the login page.
there is another way to call the background interface directly without verifying whether the user is logged in.
can I prefix the first method name with hasUserxxxx (), and then vue unifies all methods whose names start with hasUser through the section?
then I only need to call my hasUserxxxx () method directly each time to determine whether the logical aspect of login has been uniformly done