mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 16:46:19 +08:00
fix: fix form,transition,build bug
This commit is contained in:
11
src/hooks/event/useEventHub.ts
Normal file
11
src/hooks/event/useEventHub.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { tryOnUnmounted } from '/@/utils/helper/vueHelper';
|
||||
import {} from 'vue';
|
||||
import EventHub from '/@/utils/eventHub';
|
||||
const eventHub = new EventHub();
|
||||
export function useEventHub(): EventHub {
|
||||
tryOnUnmounted(() => {
|
||||
eventHub.clear();
|
||||
});
|
||||
|
||||
return eventHub;
|
||||
}
|
Reference in New Issue
Block a user