dl_site_nuxt/layouts/default.vue

52 lines
1.1 KiB
Vue
Raw Normal View History

<template>
<div>
<divHeader></divHeader>
<nuxt :nuxtChildKey="this.$route.path"/>
2025-07-31 00:01:12 +08:00
<sideNav />
<divFooter></divFooter>
</div>
</template>
<script>
import divHeader from '../components/header.vue';
import divFooter from '../components/footer.vue';
2025-07-31 00:01:12 +08:00
import sideNav from '../components/side-nav.vue';
export default {
components: {
divHeader,
2025-07-31 00:01:12 +08:00
divFooter,
sideNav
},
data() {
return {
}
},
created() {
2025-08-13 11:26:37 +08:00
},
beforeMount(){
2025-08-13 11:26:37 +08:00
window.difyChatbotConfig = {
2025-09-16 17:08:49 +08:00
token: 'yadT02u1aNiBBDLa',
2025-09-22 16:21:09 +08:00
baseUrl: 'https://chat.cdtrucktralier.com',
2025-08-13 11:26:37 +08:00
systemVariables: {
// user_id: 'YOU CAN DEFINE USER ID HERE',
// conversation_id: 'YOU CAN DEFINE CONVERSATION ID HERE, IT MUST BE A VALID UUID',
}
2025-08-13 11:26:37 +08:00
}
let a = document.createElement('script');
2025-09-22 16:21:09 +08:00
a.setAttribute('src', 'https://chat.cdtrucktralier.com/embed.min.js');
a.setAttribute('defer', true);
2025-09-16 17:08:49 +08:00
a.setAttribute('id', 'yadT02u1aNiBBDLa');
document.body.appendChild(a);
},
methods: {
}
}
</script>
<style lang="scss" scoped>
</style>