<template>
  <div id="app">
    <geomagnetism v-if="urlLink ===1"/>
    <screen v-if="urlLink ===2"/>
  </div>
</template>

<script>
import geomagnetism from './components/geomagnetism'
import screen from './components/screen'
// import getUrlKey from './utils/urlkey'

export default {
  name: 'App',
  components: {
    geomagnetism, screen
  },
  data() {
    return {
      urlLink: ''
    }
  },
  created() {
    console.log(this.getUrlKey("type"))
    this.urlLink = Number(this.getUrlKey("type"))
  }
}
</script>

<style>
#app {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #404040;
}
</style>
