Why is vue $on not triggered?

elementuidispatch

dispatch


Why is it triggered only in the hook function of created, but mounted does not trigger $on, but 668 has output? it is useless for me to comment on the $on of created, why is the $on of mounted not triggered? I saw that elementui also wrote $on in mounted.


$on is registered, not when
this.dispatch abc is triggered. If it is not registered, it will not be triggered

.
  • On the problem of vue Navigation Guard

    from the first page to the second routing page, the value of from is printed out through the component guard beforeRouteEnter on the second routing page, as shown in the following figure from is empty and can not get the information of the first page...

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