代码更新

This commit is contained in:
hrx 2026-03-30 10:55:15 +08:00
parent 0b44cc1aea
commit 7d00b5fb03
2 changed files with 3 additions and 14 deletions

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