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

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

@ -62,9 +62,16 @@ export default {
// 跳转地址
toHref(isOpen, href) {
if (isOpen) {
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;
}

@ -260,7 +260,14 @@ export default {
}
//
if (data.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
}

Loading…
Cancel
Save