diff --git a/src/module/vue/vueapp.ts b/src/module/vue/vueapp.ts index 21e1b25e7..1ff431d8b 100644 --- a/src/module/vue/vueapp.ts +++ b/src/module/vue/vueapp.ts @@ -36,7 +36,7 @@ export function VueAppMixin>( ) } - setupVueApp(app: App): void { + setupVueApp(_app: App): void { // Implement in descendants if needed } @@ -47,6 +47,7 @@ export function VueAppMixin>( // Create the Vue App instance if (this.vueApp == null || this.vueRoot == null) { const provides = pickBy(data, (v, k) => k.startsWith('$')) + this.localEmitter.on('closeApp', () => this.close()) this.vueRoot = undefined this.vueApp = createApp({