commit
b2d76b3779
@ -253,12 +253,12 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
// 判断当前是否为ncmatch.cn域名
|
// 判断当前是否为ncmatch.cn域名
|
||||||
isNcmatchDomain() {
|
isNcmatchDomain() {
|
||||||
return window.location.hostname.includes('www.ncmatch.cn');
|
return window.location.hostname.includes('ncmatch.cn');
|
||||||
},
|
},
|
||||||
// 首页激活状态计算
|
// 首页激活状态计算
|
||||||
isActiveHome() {
|
isActiveHome() {
|
||||||
if (this.isNcmatchDomain) {
|
if (this.isNcmatchDomain) {
|
||||||
return this.$route.path.includes('/ncmatchHomeindex');
|
return this.$route.path.includes('/ncmatchHome/index');
|
||||||
} else {
|
} else {
|
||||||
return this.$route.path.includes('/homePage/index');
|
return this.$route.path.includes('/homePage/index');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user