How to listen for refresh events globally in vue single page applications?

there is a tree on the left side of the project, the expansion click is lazy loading, and the tree will be reset every time it is refreshed, so I want to jump back to the home page when I refresh.
so how does the request listen for refresh events throughout the project?
do you use vue-router routing guards?

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