Can vue listen to all function under the instance?

as mentioned in the question, can vue listen to all the function, in the vue instance or how to extend the methods,? for example, determine whether there is local login information before executing each function in the methods, and then decide whether to continue execution or return. In addition to defining another function to judge this approach.

Mar.07,2022

what you should want to ask is the question of the request interceptor.
can be set globally. Search the front-end interceptor


Wrap method you can use

anywhere with only one layer of the method package to be called.
  

I think you should present your needs first, instead of letting people think about.: P in your way.

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-1b3e03f-2c3c5.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-1b3e03f-2c3c5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?