Compare commits
No commits in common. "c0b3aa9d4d9c0b9b74e6d81bc34a94e9317bf2f4" and "a1694102e55ebed2c4d69948921f5b8481edb5a7" have entirely different histories.
c0b3aa9d4d
...
a1694102e5
@ -253,7 +253,7 @@ export default Vue.extend({
|
||||
},
|
||||
// 判断当前是否为ncmatch.cn域名
|
||||
isNcmatchDomain() {
|
||||
return window.location.hostname.includes('ncmatch');
|
||||
return window.location.hostname.includes('ncmatch.cn');
|
||||
},
|
||||
// 首页激活状态计算
|
||||
isActiveHome() {
|
||||
@ -667,12 +667,10 @@ export default Vue.extend({
|
||||
|
||||
// 首页跳转方法 - 根据域名判断跳转到不同的首页
|
||||
goHome() {
|
||||
console.log('当前域名:',window.location.hostname);
|
||||
console.log('当前域名:', this.getHomePath);
|
||||
|
||||
if (this.isNcmatchDomain) {
|
||||
this.$router.push('/ncmatchHome/index');
|
||||
} else {
|
||||
this.$router.push('/homePage/index');
|
||||
this.$router.push(this.getHomePath);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user