|
|
|
@ -41,7 +41,13 @@ export default { |
|
|
|
|
} |
|
|
|
|
// 是否新窗口打开
|
|
|
|
|
if (to.isOpen) { |
|
|
|
|
var userAgent = navigator.userAgent; |
|
|
|
|
var isSafari = /Safari/.test(userAgent) && !/Chrome/.test(userAgent); |
|
|
|
|
if(isSafari) { |
|
|
|
|
window.location.href = href |
|
|
|
|
}else { |
|
|
|
|
window.open(href) |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
location.href = href |
|
|
|
|
} |
|
|
|
@ -71,7 +77,13 @@ export default { |
|
|
|
|
} |
|
|
|
|
// 是否新窗口打开
|
|
|
|
|
if (item.isOpen) { |
|
|
|
|
var userAgent = navigator.userAgent; |
|
|
|
|
var isSafari = /Safari/.test(userAgent) && !/Chrome/.test(userAgent); |
|
|
|
|
if(isSafari) { |
|
|
|
|
window.location.href = href |
|
|
|
|
}else { |
|
|
|
|
window.open(href) |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
location.href = href |
|
|
|
|
} |
|
|
|
|