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 7598bd2..ae2b498 100644 --- a/f/web-kboss/src/views/homePage/components/topBox/index.vue +++ b/f/web-kboss/src/views/homePage/components/topBox/index.vue @@ -668,10 +668,19 @@ export default Vue.extend({ } }, - // 首页跳转方法 - 使用 getHomePath 的结果进行跳转(更可靠) + // 首页跳转方法 - 根据域名判断跳转到不同的首页 goHome() { - const path = this.homePath || getHomePath(); - this.$router.push(path); + console.log('=== goHome 方法开始 ==='); + console.log('当前完整URL:', window.location.href); + console.log('当前hostname:', window.location.hostname); + console.log('isNcmatchDomain判断结果:', this.isNcmatchDomain); + console.log('准备跳转的路径:', this.isNcmatchDomain ? '/ncmatchHome/index' : '/homePage/index'); + + if (this.isNcmatchDomain) { + this.$router.push('/ncmatchHome/index'); + } else { + this.$router.push('/homePage/index'); + } } }, })