Compare commits

...

2 Commits

Author SHA1 Message Date
liulong
a37b2b0eba feat(hyzt): 外部链接直接 window.open 打开
goToHref 收到 http(s) 链接时直接新窗口打开,不再走"敬请期待"。
href 兜底判空,避免 undefined 抛 TypeError。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-09 23:09:19 +08:00
liulong
6ae90999e6 fix(xqsc): 移除调试 console.log & 补全 return 分号
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-09 23:08:05 +08:00
2 changed files with 5 additions and 1 deletions

View File

@ -425,7 +425,7 @@ export default {
goToTab({path, disable}) { goToTab({path, disable}) {
if (disable) { if (disable) {
this.showComingSoon(); this.showComingSoon();
return return;
} }
this.$router.push(path); this.$router.push(path);
}, },

View File

@ -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;