Organize host and robot streaming releases
This commit is contained in:
34
host/robot-command-center/frontend/src/router/index.ts
Normal file
34
host/robot-command-center/frontend/src/router/index.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
import DashboardView from '@/views/DashboardView.vue'
|
||||
import MapView from '@/views/MapView.vue'
|
||||
import NetworkView from '@/views/NetworkView.vue'
|
||||
import VideoView from '@/views/VideoView.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
name: 'dashboard',
|
||||
component: DashboardView,
|
||||
},
|
||||
{
|
||||
path: '/video',
|
||||
name: 'video',
|
||||
component: VideoView,
|
||||
},
|
||||
{
|
||||
path: '/map',
|
||||
name: 'map',
|
||||
component: MapView,
|
||||
},
|
||||
{
|
||||
path: '/network',
|
||||
name: 'network',
|
||||
component: NetworkView,
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user