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.
Menu