Skip to content

Commit 4479302

Browse files
safari window.open() fix
1 parent 9818116 commit 4479302

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

dist/widgets.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/base.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
},
4242
methods: {
4343
handleOpenIde: function() {
44+
let wwindow = window.open()
4445
fetch(this.data.ideUrl, {
4546
method: 'POST',
4647
headers: {
@@ -54,7 +55,8 @@
5455
})
5556
.then((res) => {
5657
if (res.status === 200 || res.status === 302) {
57-
window.open(res.url, '_blank').focus()
58+
wwindow.location.href = res.url
59+
// window.open(res.url, '_blank').focus()
5860
// res.redirect(302, res.url)
5961
} else {
6062
console.log(res.message)

0 commit comments

Comments
 (0)