소스 검색

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,