|
@@ -2894,16 +2894,13 @@ function checkTagDisabled () {
|
|
|
if(loginflag){
|
|
|
checkVisited()
|
|
|
// aHref += aHref.indexOf('?') > -1 ? '&aside=0' : '?aside=0'
|
|
|
- var targetLink = '/article/content/' + thisId + aHref
|
|
|
+ var prefix = goTemplateData.inIframe ? '/article/content/' : '/nologin/content/'
|
|
|
+ var targetLink = prefix + thisId + aHref
|
|
|
// 在iframe里,往工作桌面跳转。不在iframe里,正常跳转
|
|
|
- // if(goTemplateData.inIframe){
|
|
|
- // var workspaceTargetLink = location.origin + targetLink
|
|
|
- // var wordspcePage = '/page_workDesktop/work-bench/page?link=' + encodeURIComponent(workspaceTargetLink)
|
|
|
- // window.open(wordspcePage)
|
|
|
- // } else {
|
|
|
- // window.open(targetLink)
|
|
|
- // }
|
|
|
- window.open(targetLink)
|
|
|
+ openLinkInWorkspace(goTemplateData.inIframe, {
|
|
|
+ url: targetLink,
|
|
|
+ newTab: true,
|
|
|
+ })
|
|
|
}else{//没有登录跳转新的详情
|
|
|
checkVisited('nologin')
|
|
|
// 渠道合作页,未登录跳转需要弹出登录,重置到已登录后的详情页
|