dl_site_nuxt/layouts/default.vue

62 lines
1.4 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>
2025-08-13 11:26:37 +08:00
<!--<script>-->
<!--window.difyChatbotConfig = {-->
<!-- token: 'BC985VI4DnedSaIQ',-->
2025-09-16 17:08:49 +08:00
<!-- baseUrl: 'http://47.245.148.154',-->
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',-->
<!-- },-->
<!--}-->
<!--</script>-->
<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',
baseUrl: 'http://47.245.148.154',
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-16 17:08:49 +08:00
a.setAttribute('src', 'http://47.245.148.154/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>