<template>
  <div>
    <i class="el-icon-s-marketing" @click="goToWebsite"></i>
  </div>
</template>

<script>
  export default {
    name: 'index',
    mounted() {
      // this.toggleFullscreen
    },
    methods:{
      goToWebsite() {
        window.open('https://www.wanjunshijie.com/demo/shujudaping/zhihuizhaoming/vue3/#/home')
        this.toggleFullscreen()
      },
      toggleFullscreen() {
        if (document.documentElement.requestFullscreen) {
          document.documentElement.requestFullscreen();
        } else if (document.documentElement.mozRequestFullScreen) { // Firefox
          document.documentElement.mozRequestFullScreen();
        } else if (document.documentElement.webkitRequestFullscreen) { // Chrome, Safari and Opera
          document.documentElement.webkitRequestFullscreen();
        } else if (document.documentElement.msRequestFullscreen) { // IE/Edge
          document.documentElement.msRequestFullscreen();
        }
      }
    }
  }
</script>

<style scoped>

</style>
