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