App.vue 730 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <div id="app">
  3. <Head/>
  4. <Nav v-show="this.$route.meta.name!=='cameras'"/>
  5. <router-view/>
  6. </div>
  7. </template>
  8. <script>
  9. import Head from './components/common/head'
  10. import Nav from './components/common/nav'
  11. import { setInterval } from 'timers';
  12. export default {
  13. name: 'App',
  14. components:{
  15. Head,
  16. Nav
  17. },
  18. mounted(){
  19. console.log(this.$route.query.gId, this.$route.query.cId)
  20. console.log(window.location.search)
  21. }
  22. }
  23. </script>
  24. <style>
  25. #app {
  26. width: 100%;
  27. height: 100%;
  28. font-family: "微软雅黑","Microsoft YaHei",Arial;
  29. background:linear-gradient(180deg,rgba(0,29,49,1) 0%,rgba(0,35,78,1) 100%);
  30. min-width: 1200px;
  31. }
  32. </style>