main #87
@ -11,7 +11,7 @@ import {getHomePath} from "@/views/setting/tools";
|
||||
|
||||
NProgress.configure({showSpinner: false}); // NProgress Configuration
|
||||
|
||||
const whiteList = ["/login", "/homePage", "/registrationPage", "/shoppingCart", "/homePageImage","/h5HomePage",'/H5about','/modelProductDetail']; // no redirect whitelist
|
||||
const whiteList = ["/login", "/homePage", "/registrationPage", "/shoppingCart", "/homePageImage","/h5HomePage",'/H5about','/modelProductDetail','/ncmatchHome']; // no redirect whitelist
|
||||
|
||||
// 获取用户代理字符串
|
||||
const userAgent = window.navigator.userAgent;
|
||||
|
||||
@ -5,8 +5,8 @@
|
||||
<!-- 统一显示logo和导航 -->
|
||||
<div class="logo">
|
||||
<!-- Logo图片,点击跳转首页 - 使用与goHome相同的逻辑 -->
|
||||
<img v-if="JSON.stringify(logoInfoNew) !== '{}'" @click="goOneHome" style="cursor:pointer;"
|
||||
class="logoImg" :src="logoInfoNew.home.logoImg || ''" alt="">
|
||||
<img v-if="JSON.stringify(logoInfoNew) !== '{}'" @click="goHome" style="cursor:pointer;"
|
||||
class="logoImg" :src="logoInfoNew.home?.logoImg || ''" alt="">
|
||||
|
||||
<!-- 主导航菜单 -->
|
||||
<nav class="main-nav">
|
||||
@ -266,17 +266,6 @@ export default Vue.extend({
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goOneHome(){
|
||||
|
||||
console.log('当前域名',windows.location.hostname);
|
||||
|
||||
if (window.location.hostname === 'ncmatch.cn') {
|
||||
this.$router.push('/ncmatchHome/index');
|
||||
} else {
|
||||
this.$router.push('/homePage/index');
|
||||
}
|
||||
|
||||
},
|
||||
// 处理AI助手点击
|
||||
handleAIClick() {
|
||||
this.$message.info({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user