代码更新 #83

Merged
charles merged 1 commits from main into prod 2026-03-27 15:22:16 +08:00
Showing only changes of commit 50b22fe69b - Show all commits

View File

@ -5,7 +5,7 @@
<!-- 统一显示logo和导航 -->
<div class="logo">
<!-- Logo图片点击跳转首页 - 使用与goHome相同的逻辑 -->
<img v-if="JSON.stringify(logoInfoNew) !== '{}'" @click="goHome" style="cursor:pointer;"
<img v-if="JSON.stringify(logoInfoNew) !== '{}'" @click="goOneHome" style="cursor:pointer;"
class="logoImg" :src="logoInfoNew.home.logoImg || ''" alt="">
<!-- 主导航菜单 -->
@ -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.cnncmatch.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');
}
}
},
})
</script>