From 50b22fe69b7204c0b89825cd96a5967c097eade1 Mon Sep 17 00:00:00 2001
From: hrx <18603305412@163.com>
Date: Fri, 27 Mar 2026 15:21:47 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../homePage/components/topBox/index.vue | 29 ++++++++++---------
1 file changed, 16 insertions(+), 13 deletions(-)
diff --git a/f/web-kboss/src/views/homePage/components/topBox/index.vue b/f/web-kboss/src/views/homePage/components/topBox/index.vue
index 494b07a..f9a9500 100644
--- a/f/web-kboss/src/views/homePage/components/topBox/index.vue
+++ b/f/web-kboss/src/views/homePage/components/topBox/index.vue
@@ -5,7 +5,7 @@
-
![]()
@@ -264,22 +264,15 @@ export default Vue.extend({
}
}
},
- mounted() {
- this.$nextTick(() => {
- this.isNcmatchDomain; // 触发一次计算
- });
-},
methods: {
-
- // 首页跳转方法 - 根据域名判断跳转到不同的首页
- goHome() {
-
-
- if (this.isNcmatchDomain) {
- this.$router.push('/ncmatchHome/index');
+ goOneHome(){
+ // 如果当前域名为ncmacth 则跳转h.cn,则跳转到ncmatch.cn的/ncmatchHome/index
+ if (window.location.hostname === 'ncmatch.cn') {
+ this.$route.push('/ncmatchHome/index');
} else {
this.$router.push('/homePage/index');
}
+
},
// 处理AI助手点击
handleAIClick() {
@@ -681,6 +674,16 @@ export default Vue.extend({
}
},
+ // 首页跳转方法 - 根据域名判断跳转到不同的首页
+ goHome() {
+ console.log('当前域名:', window.location.href);
+
+ if (this.isNcmatchDomain) {
+ this.$router.push('/ncmatchHome/index');
+ } else {
+ this.$router.push('/homePage/index');
+ }
+ }
},
})