| 123456789101112131415161718192021222324252627282930313233343536373839 |
- import Vue from 'vue'
- import Router from 'vue-router'
- // const Login = () => import('@/components/Login')
- const Index = () => import('@/components/Index')
- const Monitor = () => import('@/pages/Monitor')
- const EquipList = () => import('@/pages/EquipList')
- const UserManger = () => import('@/components/UserManger')
- Vue.use(Router)
- export default new Router({
- routes: [{
- path: '',
- redirect: '/index/monitor1'
- },
- // {
- // path: '/login',
- // component: Login
- // },
- {
- path: '/index',
- component: Index,
- children: [
- {
- path: 'monitor1',
- component: Monitor,
- },
- {
- path: 'list1',
- component: EquipList,
- },
- {
- path: 'userManger1',
- component: UserManger
- },
- ]
- },
-
- ]
- })
|