Blame view

src/App.vue 643 Bytes
12dd15d5   liuqimichale   init
1
2
  <template>
    <div id="app">
54dab3c6   liuqimichale   导入公用css
3
4
      <geomagnetism v-if="urlLink ===1"/>
      <screen v-if="urlLink ===2"/>
12dd15d5   liuqimichale   init
5
6
7
8
    </div>
  </template>
  
  <script>
54dab3c6   liuqimichale   导入公用css
9
10
  import geomagnetism from './components/geomagnetism'
  import screen from './components/screen'
d1443fcf   liuqimichale   getUrlKey
11
  // import getUrlKey from './utils/urlkey'
12dd15d5   liuqimichale   init
12
13
14
15
  
  export default {
    name: 'App',
    components: {
54dab3c6   liuqimichale   导入公用css
16
17
18
19
20
21
22
23
      geomagnetism, screen
    },
    data() {
      return {
        urlLink: ''
      }
    },
    created() {
d1443fcf   liuqimichale   getUrlKey
24
25
      console.log(this.getUrlKey("type"))
      this.urlLink = Number(this.getUrlKey("type"))
12dd15d5   liuqimichale   init
26
27
28
29
30
31
    }
  }
  </script>
  
  <style>
  #app {
12dd15d5   liuqimichale   init
32
33
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
c793b6c7   liuqimichale   地磁故障
34
    color: #404040;
12dd15d5   liuqimichale   init
35
36
  }
  </style>