Blame view

src/App.vue 609 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'
12dd15d5   liuqimichale   init
11
12
13
14
  
  export default {
    name: 'App',
    components: {
54dab3c6   liuqimichale   导入公用css
15
16
17
18
19
20
21
22
23
      geomagnetism, screen
    },
    data() {
      return {
        urlLink: ''
      }
    },
    created() {
      this.urlLink = 1
12dd15d5   liuqimichale   init
24
25
26
27
28
29
30
31
32
33
34
    }
  }
  </script>
  
  <style>
  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
12dd15d5   liuqimichale   init
35
36
  }
  </style>