BigScreenUI/src/router/index.ts

51 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-11-30 13:40:30 +08:00
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import test from './module/test'
import myInfo from './module/myInfo'
2023-11-30 10:48:06 +08:00
const routes: Array<RouteRecordRaw> = [
2023-12-08 18:17:44 +08:00
2023-11-30 13:40:30 +08:00
{
path: '/echarts',
name: 'echartsScreen',
meta: {
title: '',
icon: '',
},
component: () => import('views/echarts/index.vue'),
2023-12-08 18:17:44 +08:00
},{
path: '/',
name: 'index',
2023-12-08 18:20:38 +08:00
redirect:"/screen/sharePlatform",
2023-12-08 18:17:44 +08:00
meta: {
title: '',
icon: '',
},
component: () => import('views/Index.vue'),
2023-11-30 13:40:30 +08:00
},
{
path: '/screen/sharePlatform',
name: 'sharePlatform',
meta: {
title: '',
icon: '',
},
component: () => import('views/screen/sharePlatform.vue'),
},
2023-12-01 16:29:15 +08:00
{
path: '/login',
name: 'login',
meta: {
title: '',
icon: '',
},
component: () => import('views/login/index.vue'),
}
2023-11-30 13:40:30 +08:00
]
2023-11-30 10:48:06 +08:00
2023-11-30 13:40:30 +08:00
const router = createRouter({
// 路由模式
history: createWebHashHistory(),
routes
})
2023-11-30 10:48:06 +08:00
2023-11-30 13:40:30 +08:00
export default router