diff --git a/src/views/index/components/slideshow_card.vue b/src/views/index/components/slideshow_card.vue index cea8325..f5dd732 100644 --- a/src/views/index/components/slideshow_card.vue +++ b/src/views/index/components/slideshow_card.vue @@ -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];