Skip to content

Commit

Permalink
Close on close
Browse files Browse the repository at this point in the history
  • Loading branch information
ben committed Aug 30, 2024
1 parent 0dc7e1e commit 25b37e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/module/vue/vueapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function VueAppMixin<TBase extends Constructor<Application>>(
)
}

setupVueApp(app: App): void {
setupVueApp(_app: App): void {
// Implement in descendants if needed
}

Expand All @@ -47,6 +47,7 @@ export function VueAppMixin<TBase extends Constructor<Application>>(
// 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({
Expand Down

0 comments on commit 25b37e0

Please sign in to comment.