Преглед изворни кода

create global event bus/hub

Michael Wang пре 5 година
родитељ
комит
1f0cfa548b
1 измењених фајлова са 2 додато и 0 уклоњено
  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,