| | |
| | | */ |
| | | import { createWebHashHistory, createRouter } from 'vue-router' |
| | | /* Layout */ |
| | | import Layout from '@/layout' |
| | | import Screen from '@/screen' |
| | | import Flow from '@/screen/flow.vue' |
| | | import Temp from '@/screen/temp.vue' |
| | |
| | | { |
| | | path: '/', |
| | | hidden: true, |
| | | redirect: '/flow' |
| | | redirect: '/screen', |
| | | }, |
| | | { |
| | | path: '/login', |
| | |
| | | path: '/screen', |
| | | component: Screen, |
| | | hidden: true |
| | | }, |
| | | { |
| | | path: '', //单独添加得后台路由,需要一层layout |
| | | hidden: true, |
| | | component: Layout, |
| | | children: [ |
| | | { |
| | | path: '/userCenter', |
| | | component: () => import('@/views/userCenter.vue'), |
| | | name: 'userCenter', |
| | | meta: { title: '个人中心', icon: 'PhUserCircleFill', affix: true } |
| | | }, |
| | | ] |
| | | } |
| | | ] |
| | | |