guide.vue 812 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <div>
  3. <androidGuide v-if="client == 'android'"/>
  4. <iosGuide v-if="client == 'ios'"/>
  5. </div>
  6. </template>
  7. <script>
  8. import { browser } from '@/common/common'
  9. import androidGuide from './components/androidGuide.vue'
  10. import iosGuide from './components/iosGuide.vue'
  11. export default {
  12. components:{
  13. androidGuide,iosGuide
  14. },
  15. data(){
  16. return{
  17. client:'android'
  18. }
  19. },
  20. mounted(){
  21. document.title = '投屏引导'
  22. // if(browser().android){
  23. // this.client = 'android'
  24. // }else if(browser().iPhone){
  25. // this.client = 'ios'
  26. // }else{
  27. // this.client = 'web'
  28. // }
  29. // browser().android || browser().iPhone
  30. }
  31. }
  32. </script>
  33. <style lang="less">
  34. </style>