解决聊天窗口的显示,和一些页面的内容的展示

This commit is contained in:
hejin 2025-08-13 22:37:20 +08:00
parent 4fd0c298db
commit 300019a7fc
5 changed files with 24 additions and 8 deletions

View File

@ -32,18 +32,22 @@ export default {
} }
}, },
created() { created() {
}, },
mounted(){ beforeMount(){
window.difyChatbotConfig = { window.difyChatbotConfig = {
token: 'BC985VI4DnedSaIQ', token: 'BC985VI4DnedSaIQ',
baseUrl: 'http://101.245.103.204', baseUrl: 'http://101.245.103.204',
systemVariables: { systemVariables: {
// user_id: 'YOU CAN DEFINE USER ID HERE', // user_id: 'YOU CAN DEFINE USER ID HERE',
// conversation_id: 'YOU CAN DEFINE CONVERSATION ID HERE, IT MUST BE A VALID UUID', // conversation_id: 'YOU CAN DEFINE CONVERSATION ID HERE, IT MUST BE A VALID UUID',
}, }
} }
console.log('执行完成') let a = document.createElement('script');
a.setAttribute('src', 'http://101.245.103.204/embed.min.js');
a.setAttribute('defer', true);
a.setAttribute('id', 'BC985VI4DnedSaIQ');
document.body.appendChild(a);
}, },
methods: { methods: {

View File

@ -32,7 +32,6 @@ export default {
], ],
script: [ script: [
// { type:"text/javascript" , src: 'https://api.map.baidu.com/api?v=1.0&type=webgl&ak=otBoKESzaUj1nGjWiehnCP3AUyRKgikx'} // { type:"text/javascript" , src: 'https://api.map.baidu.com/api?v=1.0&type=webgl&ak=otBoKESzaUj1nGjWiehnCP3AUyRKgikx'}
{type:"text/javascript",src:'http://101.245.103.204/embed.min.js',id:"BC985VI4DnedSaIQ",defer:true}
] ]
}, },
env: { env: {
@ -157,7 +156,7 @@ export default {
] ]
}, },
router: { router: {
middleware: ['i18n', 'footer', 'header', 'burying-point'] middleware: ['burying-point','i18n', 'footer', 'header']
}, },
/* /*
** Build configuration ** Build configuration

View File

@ -26,7 +26,11 @@
<div class="company-profiler container"> <div class="company-profiler container">
<h5 class="title">{{ $t('index.companyProfile') }}</h5> <h5 class="title">{{ $t('index.companyProfile') }}</h5>
<h4 class="sub-title">{{ $t('index.corporateName') }}</h4> <h4 class="sub-title">{{ $t('index.corporateName') }}</h4>
<div class="describe d-none d-md-block" v-html="companyInfo"></div> <div
class="describe d-none d-md-block"
v-html="$store.state.device === '手机端' ? companyInfo.contentApp : companyInfo.content"
>
</div>
<ul class="advantage row pl-0"> <ul class="advantage row pl-0">
<li <li
v-for="item in advantageList" v-for="item in advantageList"

View File

@ -243,6 +243,11 @@ export default {
}, },
} }
}, },
computed: {
isMob: () => {
return this.$store.state.device === '手机端' ? true : false
}
},
async asyncData({$axios, params}) { async asyncData({$axios, params}) {
let { let {
data: { data: {

View File

@ -2,7 +2,11 @@
<!-- 单页面类型页面 --> <!-- 单页面类型页面 -->
<div class="content"> <div class="content">
<BannerTop :options="bannerTopOptions"/> <BannerTop :options="bannerTopOptions"/>
<div class="container rich-text" v-html="pageInfo.content"></div> <div
class="container rich-text"
v-html="$store.state.device === '手机端' ? pageInfo.contentApp : pageInfo.content"
>
</div>
</div> </div>
</template> </template>