代码更新 #80
@ -5,8 +5,8 @@
|
|||||||
<!-- 统一显示logo和导航 -->
|
<!-- 统一显示logo和导航 -->
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<!-- Logo图片,点击跳转首页 - 使用与goHome相同的逻辑 -->
|
<!-- Logo图片,点击跳转首页 - 使用与goHome相同的逻辑 -->
|
||||||
<img v-if="JSON.stringify(logoInfoNew) !== '{}'" @click="goHome" style="cursor:pointer;"
|
<img v-if="JSON.stringify(logoInfoNew) !== '{}'" @click="goHome" style="cursor:pointer;" class="logoImg"
|
||||||
class="logoImg" :src="logoInfoNew.home.logoImg || ''" alt="">
|
:src="logoInfoNew.home.logoImg || ''" alt="">
|
||||||
|
|
||||||
<!-- 主导航菜单 -->
|
<!-- 主导航菜单 -->
|
||||||
<nav class="main-nav">
|
<nav class="main-nav">
|
||||||
@ -159,12 +159,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 消息中心组件 -->
|
<!-- 消息中心组件 -->
|
||||||
<message-center
|
<message-center ref="messageCenter" :visible.sync="messageCenterVisible" :userId="userId"
|
||||||
ref="messageCenter"
|
@unread-count-update="handleUnreadCountUpdate" />
|
||||||
:visible.sync="messageCenterVisible"
|
|
||||||
:userId="userId"
|
|
||||||
@unread-count-update="handleUnreadCountUpdate"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -667,12 +663,10 @@ export default Vue.extend({
|
|||||||
|
|
||||||
// 首页跳转方法 - 根据域名判断跳转到不同的首页
|
// 首页跳转方法 - 根据域名判断跳转到不同的首页
|
||||||
goHome() {
|
goHome() {
|
||||||
console.log('当前域名:',window.location.hostname);
|
|
||||||
|
|
||||||
if (this.isNcmatchDomain) {
|
if (this.isNcmatchDomain) {
|
||||||
this.$router.push('/ncmatchHome/index');
|
window.location.href = '/#/ncmatchHome/index'; // 根据路由模式调整(hash/history)
|
||||||
} else {
|
} else {
|
||||||
this.$router.push('/homePage/index');
|
window.location.href = '/#/homePage/index';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user