Can the interception of methods be realized in vue, can the aspects of methods be configured, and can the aspect-oriented programming of vue be realized?

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

Apr.25,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3745c-2c084.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3745c-2c084.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?