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