/* * @Author: Morpheus * @Date: 2021-04-30 14:12:09 * @Last Modified by: Morpheus * @Last Modified time: 2022-07-29 09:15:23 */ import Vue from 'vue' import VueRouter from 'vue-router' Vue.use(VueRouter) const layout = () => import('../../views/layout/index.vue') const home = () => import('../../views/home/index.vue') const home_02 = () => import('../../views/home/index_02.vue') const home_03 = () => import('../../views/home/index_03.vue') const routes = [ { path: '/', redirect: '/layout' }, { path: '/layout', redirect: '/layout/home', meta: { title: '导航菜单' }, component: layout, children: [ { path: 'home', meta: { title: '首页' }, component: home }, { path: 'home2', meta: { title: '首页' }, component: home_02 }, { path: 'home3', meta: { title: '首页' }, component: home_03 } ] }, { path: '/ssjk', meta: { title: '实时监控' }, component: () => import('../../views/ywsys/index.vue'), }, ] const router = new VueRouter({ base: process.env.BASE_URL, routes }) export default router