| | |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | */ |
| | | 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' |
| | | |
| | | /** |
| | | * Note: 路由配置项 |
| | |
| | | }, |
| | | { |
| | | path: '/screen', |
| | | component: Screen, |
| | | component: () => import('@/screen/index.vue'), |
| | | hidden: true |
| | | }, |
| | | { |
| | | path: '', //单独添加得后台路由,需要一层layout |
| | | hidden: true, |
| | | component: Layout, |
| | | component: () => import('@/layout/index.vue'), |
| | | children: [ |
| | | { |
| | | path: '/userCenter', |
| | |
| | | const FlowScreenRouter = [ |
| | | { |
| | | path: '/flow', |
| | | component: Flow, |
| | | component: () => import('@/screen/flow.vue'), |
| | | redirect: '/flow/home', |
| | | children: [ |
| | | { |
| | |
| | | const TempScreenRouter = [ |
| | | { |
| | | path: '/temp', |
| | | component: Temp, |
| | | component: () => import('@/screen/temp.vue'), |
| | | redirect: '/temp/home', |
| | | children: [ |
| | | { |