feat(hyzt): 外部链接直接 window.open 打开
goToHref 收到 http(s) 链接时直接新窗口打开,不再走"敬请期待"。 href 兜底判空,避免 undefined 抛 TypeError。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
6ae90999e6
commit
a37b2b0eba
@ -56,6 +56,10 @@ export default {
|
|||||||
return index === 2 ? '进入交易大厅' : '进入专题';
|
return index === 2 ? '进入交易大厅' : '进入专题';
|
||||||
},
|
},
|
||||||
goToHref(href) {
|
goToHref(href) {
|
||||||
|
if (href && href.startsWith('http')) {
|
||||||
|
window.open(href, '_blank');
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (this.messageShowing) return;
|
if (this.messageShowing) return;
|
||||||
|
|
||||||
this.messageShowing = true;
|
this.messageShowing = true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user