|
|
@ -41,7 +41,13 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
// 是否新窗口打开
|
|
|
|
// 是否新窗口打开
|
|
|
|
if (to.isOpen) { |
|
|
|
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) |
|
|
|
window.open(href) |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
location.href = href |
|
|
|
location.href = href |
|
|
|
} |
|
|
|
} |
|
|
@ -71,7 +77,13 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
// 是否新窗口打开
|
|
|
|
// 是否新窗口打开
|
|
|
|
if (item.isOpen) { |
|
|
|
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) |
|
|
|
window.open(href) |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
location.href = href |
|
|
|
location.href = href |
|
|
|
} |
|
|
|
} |
|
|
|