...
|
...
|
@@ -6,11 +6,8 @@ function XianyuLinkHandle() { |
|
|
'click',
|
|
|
event => {
|
|
|
let currentTarget = $(event.currentTarget);
|
|
|
|
|
|
|
|
|
let href = currentTarget.attr('href').replace(/[?|&]openby:yohobuy=.*/, '');
|
|
|
|
|
|
|
|
|
let href = currentTarget.attr('href') ?
|
|
|
currentTarget.attr('href').replace(/[?|&]openby:yohobuy=.*/, '') : 'javascript:void(0)';
|
|
|
let tag = href.indexOf('?') >= 0 ? '&' : '?';
|
|
|
|
|
|
href = href + tag + 'isNeedRefresh=false';
|
...
|
...
|
@@ -32,9 +29,8 @@ function XianyuLinkHandle() { |
|
|
} else {
|
|
|
window.open(args.url, '_blank');
|
|
|
}
|
|
|
event.preventDefault();
|
|
|
}
|
|
|
|
|
|
event.preventDefault();
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|