<template>
  <!-- <nuxt-link to="/user">首页</nuxt-link> -->
  <!-- <nuxt-link to="/m_user">首页</nuxt-link> -->
  <nuxt-child />
</template>
<script>


export default {
  data() {
    return {

    }
  },
  beforeMount() {
    this.goto()
  },
  methods: {
    goto() {
      var system = {};
      system.pingtai = /(Win32|Win16|WinCE|Mac68K|MacIntel|MacIntel|MacPPC|Linux mips64)/i.test(navigator.platform);
      if (system.pingtai) {
        //电脑
        console.log('电脑')
        this.$router.push('/user')
      } else {
        //手机
        console.log('手机')
      }
    }
  }
}
</script>