Explorar el Código

create global event bus/hub

Michael Wang hace 5 años
padre
commit
1f0cfa548b
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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,