From 21df6c1d21a3807e15999ca6eee32520007cc145 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sun, 1 Nov 2020 11:34:51 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B0=20goToLink?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/ExternalLibs/ExternalLibs.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/components/ExternalLibs/ExternalLibs.vue b/client/components/ExternalLibs/ExternalLibs.vue index 69b94787..5666c208 100644 --- a/client/components/ExternalLibs/ExternalLibs.vue +++ b/client/components/ExternalLibs/ExternalLibs.vue @@ -324,8 +324,9 @@ class ExternalLibs extends Vue { } openBookUrlInFrame() { - if (this.bookUrl) + if (this.bookUrl) { this.goToLink(this.addProtocol(this.bookUrl)); + } } goToLink(link) { @@ -336,6 +337,9 @@ class ExternalLibs extends Vue { this.frameVisible = false; this.$nextTick(() => { this.frameVisible = true; + this.$nextTick(() => { + this.$refs.frame.contentWindow.focus(); + }); }); }