index.vue 956 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <router-view />
  3. </template>
  4. <script>
  5. import "@/assets/style/reset.less";
  6. import "@/assets/style/public.less";
  7. import "@/assets/theme/color.less";
  8. import wxShare from "@/utils/wxshare";
  9. export default {
  10. methods: {
  11. },
  12. mounted() {
  13. if (this.isMobile) {
  14. if (window.location.href.indexOf("index.html") > -1) {
  15. window.location.href = window.location.href.replace(
  16. "index.html",
  17. "mobile.html"
  18. );
  19. } else {
  20. window.location.href =
  21. window.location.origin + window.location.pathname + "mobile.html";
  22. }
  23. }
  24. wxShare({
  25. title: `新时代中国网络文明建设成果展云展示`,
  26. desc: `弘扬时代新风 建设网络文明`,
  27. link: window.location.href,
  28. imgUrl: "https://wangzhan.cctv.com/wlwm2022/sharelogo.png",
  29. });
  30. },
  31. };
  32. </script>
  33. <style lang="less">
  34. html,
  35. body {
  36. width: 100%;
  37. height: 100%;
  38. color: #fff;
  39. }
  40. </style>