| | |
| | | import Vue from 'vue' |
| | | import Router from 'vue-router' |
| | | import Index from '@/views/index'; // 首页组件 |
| | | import OtherPage from '@/views/shouye/shouye'; // 要跳转的页面组件 |
| | | |
| | | Vue.use(Router) |
| | | |
| | |
| | | component: () => import('@/views/index'), |
| | | name: 'Index', |
| | | meta: { title: '首页', icon: 'dashboard', affix: true } |
| | | } |
| | | }, |
| | | |
| | | ] |
| | | }, |
| | |
| | | meta: { title: '个人中心', icon: 'user' } |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | |
| | | ] |
| | | |
| | | // 动态路由,基于用户权限动态去加载 |
| | |
| | | } |
| | | ] |
| | | }, |
| | | //首页通知详情 |
| | | { |
| | | path:'/dashboard', |
| | | component:Layout, |
| | | hidden: true, |
| | | permissions: ['familymodel:property:info'], |
| | | |
| | | children: [ |
| | | { |
| | | path: 'shouye/:id(\\d+)', |
| | | component: () => import('@/views/shouye/shouye'), |
| | | name: 'shouye', |
| | | meta: { title: '通知详情' } |
| | | } |
| | | ] |
| | | }, |
| | | //家庭资产管理 |
| | | { |
| | | path: '/familymodel/Property', |