diff --git a/f/web-kboss/src/permission.js b/f/web-kboss/src/permission.js index 4b670e3..f11b4ca 100644 --- a/f/web-kboss/src/permission.js +++ b/f/web-kboss/src/permission.js @@ -80,9 +80,9 @@ router.beforeEach(async (to, from, next) => { // 获取当前域名 const hostname = window.location.hostname || ''; - // 特殊处理:在 ncmatch.cn 域名下访问 /homePage/index 时重定向 - if (hostname.includes('ncmatch.cn'||'zgcopc.opencomputing.cn') && to.path === '/homePage/index') { - console.log("在 ncmatch.cn 域名下访问 /homePage/index,重定向到 /ncmatchHome/index"); + // 特殊处理:在 ncmatch.cn / zgcopc.opencomputing.cn域名下访问 /homePage/index 时重定向 + if ((hostname.includes('ncmatch.cn') || hostname.includes('zgcopc.opencomputing.cn')) && to.path === '/homePage/index') { + console.log("在 ncmatch.cn / zgcopc.opencomputing.cn 域名下访问 /homePage/index,重定向到 /ncmatchHome/index"); next('/ncmatchHome/index'); NProgress.done(); return; diff --git a/f/web-kboss/src/views/login/indexNew.vue b/f/web-kboss/src/views/login/indexNew.vue index f75f700..6066fb8 100644 --- a/f/web-kboss/src/views/login/indexNew.vue +++ b/f/web-kboss/src/views/login/indexNew.vue @@ -262,9 +262,10 @@ export default { logoInfoNew: state => state.product.logoInfoNew, // Logo信息 }), - // 检查当前域名是否为ncmatch.cn + // 检查当前域名是否为 NCMatch 系列官网。 isNcmatchDomain() { - return window.location.hostname.includes('ncmatch.cn'); + const hostname = window.location.hostname + return hostname.includes('ncmatch.cn') || hostname.includes('zgcopc.opencomputing.cn'); }, activeRules() { if (this.loginMode === 'mobile') { diff --git a/f/web-kboss/src/views/product/allProduct/index.vue b/f/web-kboss/src/views/product/allProduct/index.vue index b56befc..aeaa6f3 100644 --- a/f/web-kboss/src/views/product/allProduct/index.vue +++ b/f/web-kboss/src/views/product/allProduct/index.vue @@ -1,6 +1,6 @@