clay commit : 小修改
This commit is contained in:
@@ -66,13 +66,13 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
clickTo(link) {
|
||||
//console.log(link)
|
||||
if (/android/i.test(navigator.userAgent)) {
|
||||
window.open(link, "_blank")
|
||||
}
|
||||
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
|
||||
window.location.href = window.location.origin + link;//当前标签页
|
||||
}
|
||||
// let userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
|
||||
window.location.href = link
|
||||
// if (userAgent.indexOf("Safari") > -1) {
|
||||
// window.location.href = link
|
||||
// } else {
|
||||
// window.open(link, "_blank")
|
||||
// }
|
||||
},
|
||||
constructor() {
|
||||
this.bannerWrap = document.getElementsByClassName("banner-card")[0];
|
||||
|
||||
Reference in New Issue
Block a user