Vue uses addRoutes to execute router.beforeEach at least five times.

clipboard.png

Logic generally means that users generate routing tables through user token and generate new routes through addRoute, but get user information through token. Refreshing the page will execute router.beforeEach many times, resulting in multiple visits to the getUserInfo interface. I would like to ask how to avoid this problem


! Token is a cast type. Use ! token


to ask the landlord whether it has been solved? I have the same problem! It's hard now

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