Compare commits
No commits in common. "9f3e5c6bbfe8767dbbb5ef8095b96c5edf098fdd" and "01396a032dcd237d663fe8792a78506cbfb64ef1" have entirely different histories.
9f3e5c6bbf
...
01396a032d
@ -264,23 +264,7 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.isNcmatchDomain; // 触发一次计算
|
|
||||||
});
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
// 首页跳转方法 - 根据域名判断跳转到不同的首页
|
|
||||||
goHome() {
|
|
||||||
|
|
||||||
|
|
||||||
if (this.isNcmatchDomain) {
|
|
||||||
this.$router.push('/ncmatchHome/index');
|
|
||||||
} else {
|
|
||||||
this.$router.push('/homePage/index');
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 处理AI助手点击
|
// 处理AI助手点击
|
||||||
handleAIClick() {
|
handleAIClick() {
|
||||||
this.$message.info({
|
this.$message.info({
|
||||||
@ -681,6 +665,16 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 首页跳转方法 - 根据域名判断跳转到不同的首页
|
||||||
|
goHome() {
|
||||||
|
console.log('当前域名:', window.location.href);
|
||||||
|
|
||||||
|
if (this.isNcmatchDomain) {
|
||||||
|
this.$router.push('/ncmatchHome/index');
|
||||||
|
} else {
|
||||||
|
this.$router.push('/homePage/index');
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user