diff --git a/layouts/default.vue b/layouts/default.vue index da5de05..50e1503 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -9,7 +9,7 @@ - + @@ -36,17 +36,17 @@ export default { }, beforeMount(){ window.difyChatbotConfig = { - token: 'BC985VI4DnedSaIQ', - baseUrl: 'http://101.245.103.204', + token: 'yadT02u1aNiBBDLa', + baseUrl: 'http://47.245.148.154', systemVariables: { // user_id: 'YOU CAN DEFINE USER ID HERE', // conversation_id: 'YOU CAN DEFINE CONVERSATION ID HERE, IT MUST BE A VALID UUID', } } let a = document.createElement('script'); - a.setAttribute('src', 'http://101.245.103.204/embed.min.js'); + a.setAttribute('src', 'http://47.245.148.154/embed.min.js'); a.setAttribute('defer', true); - a.setAttribute('id', 'BC985VI4DnedSaIQ'); + a.setAttribute('id', 'yadT02u1aNiBBDLa'); document.body.appendChild(a); }, methods: { diff --git a/nuxt.config.js b/nuxt.config.js index 7486620..9ac627b 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -33,7 +33,7 @@ export default { script: [ // { type:"text/javascript" , src: 'https://api.map.baidu.com/api?v=1.0&type=webgl&ak=otBoKESzaUj1nGjWiehnCP3AUyRKgikx'} //AI助手js - // {type:"text/javascript" , src: 'http://101.245.103.204/embed.min.js',id:"BC985VI4DnedSaIQ",defer:true} + {type:"text/javascript" , src: 'http://47.245.148.154/embed.min.js',id:"yadT02u1aNiBBDLa",defer:true} ] }, env: { diff --git a/pages/products/chatForm.vue b/pages/products/chatForm.vue index a05db1e..8b8a4fa 100644 --- a/pages/products/chatForm.vue +++ b/pages/products/chatForm.vue @@ -145,7 +145,7 @@ export default { const userAgent = navigator.userAgent || navigator.vendor || window.opera; // 简单判断是否为手机端 this.equipment = /android|webos|iphone|ipod|BlackBerry|iemobile|opera mini/i - .test(userAgent.toLowerCase()) ? '手机端' : '电脑端'; + .test(userAgent.toLowerCase()) ? '移动端' : '电脑端'; const websocketUrl = `${process.env.NUXT_ENV.VUE_APP_WEBSOCKET}${this.deviceCode}`; diff --git a/store/index.js b/store/index.js index 0aa205b..6886918 100644 --- a/store/index.js +++ b/store/index.js @@ -47,7 +47,7 @@ export const mutations = { state.menuTree = [...state.menuTree, ...tree] }, SET_DEVICE (state, isMob) { - state.device = isMob ? '手机端' : '电脑端' + state.device = isMob ? '移动端' : '电脑端' } }