import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/home/mobile.vue'
import Gdmuseum from '../views/gdmuseum/mobile.vue'
import Exhibition from '../views/exhibition/mobile.vue'
import Collection from '../views/collection/mobile.vue'
import MuseumList from '../views/home/list'

import Overview from '../views/overview'
import Zhanlan from '../views/zhanlan'

// import Map from '../views/map'
// import Pano from '../views/pano'
// import MbCollection from '../views/collection/mobile.vue'

import browser from '@/utils/browser'


const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },

  {
    path: '/museumlist/:id',
    name: 'museumlist',
    children: [
      { path: '', name: 'homelist', component: MuseumList },
    ],
  },

  {
    path: '/gdmuseum',
    name: 'gdmuseum',
    component: Gdmuseum
  },
  {
    path: '/collection',
    name: 'collection',
    component: Collection
  },
  {
    path: '/exhibition',
    name: 'exhibition',
    component: Exhibition
  },
  {
    path: '/overview',
    name: 'overview',
    component: Overview
  },
  {
    path: '/zhanlan/:id',
    name: 'zhanlan',
    component: Zhanlan
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
