Compare commits

..

No commits in common. "016efdc69d42072d28642c99d450c53b48284b20" and "9f3e5c6bbfe8767dbbb5ef8095b96c5edf098fdd" have entirely different histories.

View File

@ -5,7 +5,7 @@
<!-- 统一显示logo和导航 -->
<div class="logo">
<!-- 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="">
<!-- 主导航菜单 -->
@ -264,15 +264,22 @@ export default Vue.extend({
}
}
},
mounted() {
this.$nextTick(() => {
this.isNcmatchDomain; //
});
},
methods: {
goOneHome(){
// ncmacth h.cnncmatch.cn/ncmatchHome/index
if (window.location.hostname === 'ncmatch.cn') {
this.$route.push('/ncmatchHome/index');
// -
goHome() {
if (this.isNcmatchDomain) {
this.$router.push('/ncmatchHome/index');
} else {
this.$router.push('/homePage/index');
}
},
// AI
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>