master
wangchenguang 2 years ago
parent a41da6de4d
commit e2e60c813a
  1. 16
      src/mixins/article/index.js
  2. 11
      src/mixins/page/index.js
  3. 8
      src/pages/column/index.vue
  4. 2
      src/pages/home/index.vue
  5. 9
      src/pages/news/index.vue

@ -41,7 +41,13 @@ export default {
}
// 是否新窗口打开
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 {
location.href = href
}
@ -71,7 +77,13 @@ export default {
}
// 是否新窗口打开
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 {
location.href = href
}

@ -62,9 +62,16 @@ export default {
// 跳转地址
toHref(isOpen, href) {
if (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 {
location.href = href
window.location.href = href
}
},
// 跳转文章页面

@ -413,7 +413,13 @@ export default {
}
//
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 {
location.href = href;
}

@ -64,7 +64,7 @@
<div class="texts">
<h6>{{ item.title }}</h6>
<p class="des">{{ item.des }}</p>
<img src="@/assets/images/arrow.png" alt="" :class="{'arrow': isLink(item.link.linkName)}" @click="openLink(item)">
<img src="@/assets/images/arrow.png" alt="" :class="{'arrow': isLink(item.link.linkName)}" @click="openLink(item)" >
</div>
</li>
</template>

@ -260,7 +260,14 @@ export default {
}
//
if (data.isOpen) {
window.open(href)
// 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 {
location.href = href
}

Loading…
Cancel
Save