Поправка goToLink
This commit is contained in:
@@ -324,9 +324,10 @@ class ExternalLibs extends Vue {
|
||||
}
|
||||
|
||||
openBookUrlInFrame() {
|
||||
if (this.bookUrl)
|
||||
if (this.bookUrl) {
|
||||
this.goToLink(this.addProtocol(this.bookUrl));
|
||||
}
|
||||
}
|
||||
|
||||
goToLink(link) {
|
||||
if (!this.ready)
|
||||
@@ -336,6 +337,9 @@ class ExternalLibs extends Vue {
|
||||
this.frameVisible = false;
|
||||
this.$nextTick(() => {
|
||||
this.frameVisible = true;
|
||||
this.$nextTick(() => {
|
||||
this.$refs.frame.contentWindow.focus();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user