代码更新 #86
@ -25,7 +25,7 @@
|
|||||||
<script>
|
<script>
|
||||||
window.difyChatbotConfig = {
|
window.difyChatbotConfig = {
|
||||||
token: 'HKghmPZLD4JczCXc',
|
token: 'HKghmPZLD4JczCXc',
|
||||||
baseUrl: 'http://aigc.smartcrec.com',
|
baseUrl: 'https://aigc.smartcrec.com',
|
||||||
inputs: {
|
inputs: {
|
||||||
// You can define the inputs from the Start node here
|
// You can define the inputs from the Start node here
|
||||||
// key is the variable name
|
// key is the variable name
|
||||||
@ -43,7 +43,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script
|
<script
|
||||||
src="http://aigc.smartcrec.com/embed.min.js"
|
src="https://aigc.smartcrec.com/embed.min.js"
|
||||||
id="HKghmPZLD4JczCXc"
|
id="HKghmPZLD4JczCXc"
|
||||||
defer>
|
defer>
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import {getHomePath} from "@/views/setting/tools";
|
|||||||
|
|
||||||
NProgress.configure({showSpinner: false}); // NProgress Configuration
|
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;
|
const userAgent = window.navigator.userAgent;
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
<!-- 统一显示logo和导航 -->
|
<!-- 统一显示logo和导航 -->
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<!-- Logo图片,点击跳转首页 - 使用与goHome相同的逻辑 -->
|
<!-- Logo图片,点击跳转首页 - 使用与goHome相同的逻辑 -->
|
||||||
<img v-if="JSON.stringify(logoInfoNew) !== '{}'" @click="goOneHome" style="cursor:pointer;"
|
<img v-if="JSON.stringify(logoInfoNew) !== '{}'" @click="goHome" style="cursor:pointer;"
|
||||||
class="logoImg" :src="logoInfoNew.home.logoImg || ''" alt="">
|
class="logoImg" :src="logoInfoNew.home.logoImg || ''" alt="">
|
||||||
|
|
||||||
<!-- 主导航菜单 -->
|
<!-- 主导航菜单 -->
|
||||||
@ -266,17 +266,7 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
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助手点击
|
// 处理AI助手点击
|
||||||
handleAIClick() {
|
handleAIClick() {
|
||||||
this.$message.info({
|
this.$message.info({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user