解决聊天窗口的显示,和一些页面的内容的展示
This commit is contained in:
parent
4fd0c298db
commit
300019a7fc
@ -32,18 +32,22 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
|
||||
},
|
||||
mounted(){
|
||||
beforeMount(){
|
||||
window.difyChatbotConfig = {
|
||||
token: 'BC985VI4DnedSaIQ',
|
||||
baseUrl: 'http://101.245.103.204',
|
||||
systemVariables: {
|
||||
// user_id: 'YOU CAN DEFINE USER ID HERE',
|
||||
// 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: {
|
||||
|
||||
|
@ -32,7 +32,6 @@ export default {
|
||||
],
|
||||
script: [
|
||||
// { 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: {
|
||||
@ -157,7 +156,7 @@ export default {
|
||||
]
|
||||
},
|
||||
router: {
|
||||
middleware: ['i18n', 'footer', 'header', 'burying-point']
|
||||
middleware: ['burying-point','i18n', 'footer', 'header']
|
||||
},
|
||||
/*
|
||||
** Build configuration
|
||||
|
@ -26,7 +26,11 @@
|
||||
<div class="company-profiler container">
|
||||
<h5 class="title">{{ $t('index.companyProfile') }}</h5>
|
||||
<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">
|
||||
<li
|
||||
v-for="item in advantageList"
|
||||
|
@ -243,6 +243,11 @@ export default {
|
||||
},
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
isMob: () => {
|
||||
return this.$store.state.device === '手机端' ? true : false
|
||||
}
|
||||
},
|
||||
async asyncData({$axios, params}) {
|
||||
let {
|
||||
data: {
|
||||
|
@ -2,7 +2,11 @@
|
||||
<!-- 单页面类型页面 -->
|
||||
<div class="content">
|
||||
<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>
|
||||
</template>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user