<template>
  <div id="app">
    
    <datav2 v-if="dataType==4"/>
    <datav3 v-else-if="dataType==5"/>
    <datav v-else/>
  </div>
</template>

<script>
import datav from './components/baozuo-demo/index.vue' 
import datav2 from './components/baozuo-demo2/index.vue'
import datav3 from './components/baozuo-demo3/index.vue'  
// import datav from './components/datav/index.vue' 
// import datav from './components/zidingyi/index.vue' 

const queryParams = new URLSearchParams(window.location.search);
const dataTypeParam = queryParams.get('q');
export default {
  name: 'app',
  components: {
    datav,datav2,datav3 
  },
  data() {
    return {
      dataType: ''
    }
  },
  created() {
    this.dataType = dataTypeParam;
  },
  computed: { 
  }
}
</script>

<style lang="less">
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  width: 100%;
  height: 100%;
}
</style>
