Compare commits

..

No commits in common. "f4f29682aed30b2d15abe4b6dae1511be712c80f" and "060d85907c551ffb91e22e411d66f773d3a1e6a6" have entirely different histories.

View File

@ -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;" class="logoImg" <img v-if="JSON.stringify(logoInfoNew) !== '{}'" @click="goHome" style="cursor:pointer;"
:src="logoInfoNew.home.logoImg || ''" alt=""> class="logoImg" :src="logoInfoNew.home.logoImg || ''" alt="">
<!-- 主导航菜单 --> <!-- 主导航菜单 -->
<nav class="main-nav"> <nav class="main-nav">
@ -159,8 +159,12 @@
</div> </div>
<!-- 消息中心组件 --> <!-- 消息中心组件 -->
<message-center ref="messageCenter" :visible.sync="messageCenterVisible" :userId="userId" <message-center
@unread-count-update="handleUnreadCountUpdate" /> ref="messageCenter"
:visible.sync="messageCenterVisible"
:userId="userId"
@unread-count-update="handleUnreadCountUpdate"
/>
</div> </div>
</template> </template>
@ -302,13 +306,13 @@ export default Vue.extend({
this.$router.push('/product/productHome') this.$router.push('/product/productHome')
} else if (sessionStorage.getItem('jueseNew').includes('运营')) { } else if (sessionStorage.getItem('jueseNew').includes('运营')) {
this.$router.push('/operation/supplierManagement') this.$router.push('/operation/supplierManagement')
} else if (sessionStorage.getItem('jueseNew').includes('运维')) { }else if(sessionStorage.getItem('jueseNew').includes('运维')){
this.$router.push('/operationAndMaintenance/workOrderProcessing') this.$router.push('/operationAndMaintenance/workOrderProcessing')
} else if (sessionStorage.getItem('jueseNew').includes('销售')) { }else if(sessionStorage.getItem('jueseNew').includes('销售')){
this.$router.push('/sales/distributorManagement') this.$router.push('/sales/distributorManagement')
} else if (sessionStorage.getItem('jueseNew').includes('财务')) { }else if(sessionStorage.getItem('jueseNew').includes('财务')){
this.$router.push('/finance/supplierSettlementStatistics') this.$router.push('/finance/supplierSettlementStatistics')
} else if (sessionStorage.getItem('jueseNew').includes('admin')) { }else if(sessionStorage.getItem('jueseNew').includes('admin')){
this.$router.push('/superAdministrator/addAdmin') this.$router.push('/superAdministrator/addAdmin')
} }
}, },
@ -663,10 +667,12 @@ export default Vue.extend({
// - // -
goHome() { goHome() {
console.log('当前域名:',window.location.hostname);
if (this.isNcmatchDomain) { if (this.isNcmatchDomain) {
window.location.href = '/#/ncmatchHome/index'; // hash/history this.$router.push('/ncmatchHome/index');
} else { } else {
window.location.href = '/#/homePage/index'; this.$router.push('/homePage/index');
} }
} }
}, },