Compare commits
No commits in common. "fe649ed106ef97c7a4988809bfee05aea925eae6" and "774eaee96136e9fa1d30cc48f89d32598cc327a7" have entirely different histories.
fe649ed106
...
774eaee961
@ -668,19 +668,10 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 首页跳转方法 - 根据域名判断跳转到不同的首页
|
// 首页跳转方法 - 使用 getHomePath 的结果进行跳转(更可靠)
|
||||||
goHome() {
|
goHome() {
|
||||||
console.log('=== goHome 方法开始 ===');
|
const path = this.homePath || getHomePath();
|
||||||
console.log('当前完整URL:', window.location.href);
|
this.$router.push(path);
|
||||||
console.log('当前hostname:', window.location.hostname);
|
|
||||||
console.log('isNcmatchDomain判断结果:', this.isNcmatchDomain);
|
|
||||||
console.log('准备跳转的路径:', this.isNcmatchDomain ? '/ncmatchHome/index' : '/homePage/index');
|
|
||||||
|
|
||||||
if (this.isNcmatchDomain) {
|
|
||||||
this.$router.push('/ncmatchHome/index');
|
|
||||||
} else {
|
|
||||||
this.$router.push('/homePage/index');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user