import Vue from 'vue'
import Router from 'vue-router'
import index from '@/views/MingLuoFloat.vue'
import clientView from '@/views/ClientView.vue'
import None from '@/views/None.vue'

Vue.use(Router)
export const constantRouterMap = [
  {
    path: '/',
    name: 'index',
    component: index,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/client',
    name: 'client',
    component: clientView,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/none',
    name: 'none',
    component: None,
    meta: {
      keepAlive: true
    }
  },
]
export default new Router({
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap
})