Compare commits

..

No commits in common. "5fb098b8a4ed05effbc51c6919e972621c3099b2" and "8963d964df51c842a7d89ec7b619d9c992ea0f62" have entirely different histories.

3 changed files with 5 additions and 11 deletions

View File

@ -19,6 +19,7 @@ import ShowGpu from "@/views/product/productHome/capitalOnline/productItem/GpuPr
import ShowEip from "@/views/product/productHome/capitalOnline/Net/Eip/showEip/index.vue";
import CreateEip from "@/views/product/productHome/capitalOnline/Net/Eip/createEip/index.vue";
import { getHomePath } from '@/views/setting/tools'
import { h } from "vue";
Vue.use(Router);

View File

@ -670,11 +670,7 @@ export default Vue.extend({
// -
goHome() {
console.log('=== goHome 方法开始 ===');
console.log('当前完整URL:', window.location.href);
console.log('当前hostname:', window.location.hostname);
console.log('isNcmatchDomain判断结果:', this.isNcmatchDomain);
console.log('准备跳转的路径:', this.isNcmatchDomain ? '/ncmatchHome/index' : '/homePage/index');
console.log('当前域名:', window.location.href);
if (this.isNcmatchDomain) {
this.$router.push('/ncmatchHome/index');

View File

@ -9,9 +9,6 @@ export function getHomePath() {
domain_url = url_link.split('?domain_name=')[1];
}
// 使用 hostname 进行更精确的判断
const hostname = window.location.hostname || '';
// 如果是业主机构
if ((domain_url.includes('ncmatch') ||
domain_url.includes('9527') ||
@ -25,12 +22,12 @@ export function getHomePath() {
} else if (domain_url.includes('kaiyuancloud') || domain_url.includes('opencomputing') || domain_url.includes('localhost')) {
homePath = '/homePage/index'
}
} else if (hostname.includes('ncmatch.cn')) {
}else if(url_link.includes('ncmatch')){
homePath = '/ncmatchHome/index'
} else {
}else{
homePath = '/homePage/index'
}
// this.$message.success("homePath是"+homePath)
console.log("getHomePath - hostname:", hostname, "homePath:", homePath)
console.log("homePath是",homePath)
return homePath
}