Compare commits
No commits in common. "016efdc69d42072d28642c99d450c53b48284b20" and "9f3e5c6bbfe8767dbbb5ef8095b96c5edf098fdd" have entirely different histories.
016efdc69d
...
9f3e5c6bbf
@ -5,7 +5,7 @@
|
|||||||
<!-- 统一显示logo和导航 -->
|
<!-- 统一显示logo和导航 -->
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<!-- Logo图片,点击跳转首页 - 使用与goHome相同的逻辑 -->
|
<!-- Logo图片,点击跳转首页 - 使用与goHome相同的逻辑 -->
|
||||||
<img v-if="JSON.stringify(logoInfoNew) !== '{}'" @click="goOneHome" style="cursor:pointer;"
|
<img v-if="JSON.stringify(logoInfoNew) !== '{}'" @click="goHome" style="cursor:pointer;"
|
||||||
class="logoImg" :src="logoInfoNew.home.logoImg || ''" alt="">
|
class="logoImg" :src="logoInfoNew.home.logoImg || ''" alt="">
|
||||||
|
|
||||||
<!-- 主导航菜单 -->
|
<!-- 主导航菜单 -->
|
||||||
@ -263,16 +263,23 @@ export default Vue.extend({
|
|||||||
return this.$route.path.includes('/homePage/index');
|
return this.$route.path.includes('/homePage/index');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.isNcmatchDomain; // 触发一次计算
|
||||||
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goOneHome(){
|
|
||||||
// 如果当前域名为ncmacth 则跳转h.cn,则跳转到ncmatch.cn的/ncmatchHome/index
|
// 首页跳转方法 - 根据域名判断跳转到不同的首页
|
||||||
if (window.location.hostname === 'ncmatch.cn') {
|
goHome() {
|
||||||
this.$route.push('/ncmatchHome/index');
|
|
||||||
|
|
||||||
|
if (this.isNcmatchDomain) {
|
||||||
|
this.$router.push('/ncmatchHome/index');
|
||||||
} else {
|
} else {
|
||||||
this.$router.push('/homePage/index');
|
this.$router.push('/homePage/index');
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
// 处理AI助手点击
|
// 处理AI助手点击
|
||||||
handleAIClick() {
|
handleAIClick() {
|
||||||
@ -674,16 +681,6 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 首页跳转方法 - 根据域名判断跳转到不同的首页
|
|
||||||
goHome() {
|
|
||||||
console.log('当前域名:', window.location.href);
|
|
||||||
|
|
||||||
if (this.isNcmatchDomain) {
|
|
||||||
this.$router.push('/ncmatchHome/index');
|
|
||||||
} else {
|
|
||||||
this.$router.push('/homePage/index');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user