main #87

Merged
charles merged 2 commits from main into prod 2026-03-30 10:56:17 +08:00
2 changed files with 3 additions and 14 deletions
Showing only changes of commit 7d00b5fb03 - Show all commits

View File

@ -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;

View File

@ -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({