<template>
  <div id="app">
    <Router-view/>
  </div>
</template>


<script>

export default {

  created() {
    // 移动端和pc端的切换
    if (
      window.navigator.userAgent.match(
        /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
      )
    ) {
      // 移动端
    } else {
      // PC端
      if (window.location.href.includes("https://cssbbwg.4dage.com/")) {
        window.location.href ='https://cssbbwg.4dage.com/'
        setTimeout(() => {
          location.reload(true);
        }, 1000);
      }
    }
  }

}
</script>

<style lang="less">
#app{
  max-width: 500px;
  margin: 0 auto;
}
</style>
