<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
      )
    ) {
      // 移动端
      if (window.location.href.includes('en.capitalmuseum.org.cn')) {
        window.location.href = window.location.origin + '/mobile/index.html#/Layout/Home'
        setTimeout(() => {
          location.reload(true);
        }, 200);
      }
    }
  }

}
</script>


<style lang='less' scoped>
#app {
  width: 100%;
  // min-width: 1280px;
}
</style>



