瀏覽代碼

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,