mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
fix: do not lazy-load GlobalEventListeners (#1515)
This commit is contained in:
parent
59c493bae4
commit
8612d55351
1 changed files with 4 additions and 2 deletions
|
@ -2,10 +2,10 @@
|
|||
<Overlay/>
|
||||
<DialogBox ref="dialog"/>
|
||||
<MessageToaster ref="toaster"/>
|
||||
<GlobalEventListeners/>
|
||||
|
||||
<div id="main" v-if="authenticated" @dragover="onDragOver" @drop="onDrop" @dragend="onDragEnd">
|
||||
<Hotkeys/>
|
||||
<GlobalEventListeners/>
|
||||
<AppHeader/>
|
||||
<MainWrapper/>
|
||||
<AppFooter/>
|
||||
|
@ -39,8 +39,10 @@ import Overlay from '@/components/ui/Overlay.vue'
|
|||
// that is necessary to properly initialize the playService and equalizer.
|
||||
import AppFooter from '@/components/layout/app-footer/index.vue'
|
||||
|
||||
// GlobalEventListener must NOT be lazy-loaded, so that it can handle LOG_OUT event properly.
|
||||
import GlobalEventListeners from '@/components/utils/GlobalEventListeners.vue'
|
||||
|
||||
const AppHeader = defineAsyncComponent(() => import('@/components/layout/AppHeader.vue'))
|
||||
const GlobalEventListeners = defineAsyncComponent(() => import('@/components/utils/GlobalEventListeners.vue'))
|
||||
const Hotkeys = defineAsyncComponent(() => import('@/components/utils/HotkeyListener.vue'))
|
||||
const LoginForm = defineAsyncComponent(() => import('@/components/auth/LoginForm.vue'))
|
||||
const MainWrapper = defineAsyncComponent(() => import('@/components/layout/main-wrapper/index.vue'))
|
||||
|
|
Loading…
Reference in a new issue