Referencing vue-scoketIO routing redirects does not execute custom events

when referencing vue-scoketIO , the hop route does not execute a custom event ~
scoket has been connected and the data has been received. The data of the live_list (initialization) event can be received only when it is refreshed, and the live_change can receive it.
I want to listen to live_list when redirecting routes.

look at the code.

clipboard.png

clipboard.png

paid answer, the respondent pastes your Wechat collection code and invites you to drink Starbucks . Thx . Hurry, wait online.

Mar.18,2021

I think you have no problem writing this code. When you listen to an event in created, you must first see where your event is triggered. It seems that your init has been executed


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