<template>
  <router-view />
</template>

<script>
import "@/assets/style/reset.less";
import "@/assets/style/public.less";
import "@/assets/theme/color.less";
import wxShare from "@/utils/wxshare";

export default {
  methods: {
   
  },
  mounted() {
    if (this.isMobile) {
      if (window.location.href.indexOf("index.html") > -1) {
        window.location.href = window.location.href.replace(
          "index.html",
          "mobile.html"
        );
      } else {
        window.location.href =
          window.location.origin + window.location.pathname + "mobile.html";
      }
    }

  wxShare({
        title: `新时代中国网络文明建设成果展云展示`,
        desc: `弘扬时代新风 建设网络文明`,
        link: window.location.href,
        imgUrl: "https://wangzhan.cctv.com/wlwm2022/sharelogo.png",
      });
  },
};
</script>
<style lang="less">
html,
body {
  width: 100%;
  height: 100%;
  color: #fff;
}
</style>
