<template>
  <div>
    <divHeader></divHeader>
    <nuxt :nuxtChildKey="this.$route.path"/>
    <sideNav />
    <divFooter></divFooter>
  </div>
</template>
<!--<script>-->
<!--window.difyChatbotConfig = {-->
<!--  token: 'BC985VI4DnedSaIQ',-->
<!--  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',-->
<!--  },-->
<!--}-->
<!--</script>-->
<script>
import divHeader from '../components/header.vue';
import divFooter from '../components/footer.vue';
import sideNav from '../components/side-nav.vue';

export default {
  components: {
    divHeader,
    divFooter,
    sideNav
  },
  data() {
    return {
    }
  },
  created() {
    
  },
  beforeMount(){
    window.difyChatbotConfig = {
      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://47.245.148.154/embed.min.js');
    a.setAttribute('defer', true);
    a.setAttribute('id', 'yadT02u1aNiBBDLa');
    document.body.appendChild(a);
  },
  methods: {
    
  }
}

</script>

<style lang="scss" scoped>

</style>
