diff --git a/src/mixin/multi-window.ts b/src/mixin/multi-window.ts index f88b604..5c62630 100644 --- a/src/mixin/multi-window.ts +++ b/src/mixin/multi-window.ts @@ -74,7 +74,7 @@ export class MultiWindow extends Vue { } windowBack (argument?: any): void { - const context = window.opener.$vue + const context = window?.opener?.$vue const callback = this.$data.$multiWindowOptions.callback const delayClosingWindow = this.$data.$multiWindowOptions.delayClosingWindow if (!context) {