From bd1254f9f9b499e1915f6b80e8c8d605cfc10704 Mon Sep 17 00:00:00 2001
From: hrx <18603305412@163.com>
Date: Fri, 27 Mar 2026 14:49:23 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../homePage/components/topBox/index.vue | 28 ++++++++-----------
1 file changed, 11 insertions(+), 17 deletions(-)
diff --git a/f/web-kboss/src/views/homePage/components/topBox/index.vue b/f/web-kboss/src/views/homePage/components/topBox/index.vue
index 5c7e2ea..d283c43 100644
--- a/f/web-kboss/src/views/homePage/components/topBox/index.vue
+++ b/f/web-kboss/src/views/homePage/components/topBox/index.vue
@@ -5,8 +5,8 @@
-
![]()
+
-
+
@@ -253,7 +249,7 @@ export default Vue.extend({
},
// 判断当前是否为ncmatch.cn域名
isNcmatchDomain() {
- return window.location.hostname.includes('ncmatch') || window.Location.href.includes('ncmatch');
+ return window.location.hostname.includes('ncmatch') || window.Location.href.includes('ncmatch');
},
// 首页激活状态计算
isActiveHome() {
@@ -306,13 +302,13 @@ export default Vue.extend({
this.$router.push('/product/productHome')
} else if (sessionStorage.getItem('jueseNew').includes('运营')) {
this.$router.push('/operation/supplierManagement')
- }else if(sessionStorage.getItem('jueseNew').includes('运维')){
+ } else if (sessionStorage.getItem('jueseNew').includes('运维')) {
this.$router.push('/operationAndMaintenance/workOrderProcessing')
- }else if(sessionStorage.getItem('jueseNew').includes('销售')){
+ } else if (sessionStorage.getItem('jueseNew').includes('销售')) {
this.$router.push('/sales/distributorManagement')
- }else if(sessionStorage.getItem('jueseNew').includes('财务')){
+ } else if (sessionStorage.getItem('jueseNew').includes('财务')) {
this.$router.push('/finance/supplierSettlementStatistics')
- }else if(sessionStorage.getItem('jueseNew').includes('admin')){
+ } else if (sessionStorage.getItem('jueseNew').includes('admin')) {
this.$router.push('/superAdministrator/addAdmin')
}
},
@@ -667,12 +663,10 @@ export default Vue.extend({
// 首页跳转方法 - 根据域名判断跳转到不同的首页
goHome() {
- console.log('当前域名:',window.location.hostname);
-
if (this.isNcmatchDomain) {
- this.$router.push('/ncmatchHome/index');
+ window.location.href = '/#/ncmatchHome/index'; // 根据路由模式调整(hash/history)
} else {
- this.$router.push('/homePage/index');
+ window.location.href = '/#/homePage/index';
}
}
},