feat: install emitter as a plugin

This commit is contained in:
Shivam Mishra
2024-08-05 11:54:29 +05:30
parent 2a8d7e55c6
commit 523769b7ed
5 changed files with 16 additions and 9 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ import {
} from 'shared/helpers/Validators';
import router from '../widget/router';
import { directive as onClickaway } from 'vue-clickaway';
import { emitter } from 'shared/helpers/mitt';
import { EmitterPlugin } from 'shared/helpers/mitt';
import { domPurifyConfig } from '../shared/helpers/HTMLSanitizer';
const PhoneInput = () => import('../widget/components/Form/PhoneInput');
@@ -45,7 +45,7 @@ Vue.use(VueFormulate, {
},
});
// Event Bus
Vue.prototype.$emitter = emitter;
Vue.use(EmitterPlugin);
Vue.config.productionTip = false;