Ver Fonte

create global event bus/hub

Michael Wang há 5 anos atrás
pai
commit
1f0cfa548b
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      src/main.js

+ 2 - 0
src/main.js

@@ -24,6 +24,8 @@ if (
 
 Vue.component("ecs-form-search", EcsFormSearch);
 
+Vue.prototype.$eventHub = new Vue();
+
 new Vue({
   router,
   store,