Files
jc-video-recognize/apps/web/src/router/index.js

32 lines
710 B
JavaScript

import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'
import AlertList from '@/views/AlertList.vue'
import Layout from '@/layouts/MainLayout.vue'
const routes = [
{
path: '/',
component: Layout,
children: [
{
path: '',
name: 'Home',
component: Home,
meta: { title: '模型检测', icon: 'VideoCamera', keepAlive: true }
},
{
path: '/alerts',
name: 'AlertList',
component: AlertList,
meta: { title: '预警列表', icon: 'WarningFilled', keepAlive: true }
}
]
}
]
const router = createRouter({
history: createWebHistory(),
routes
})
export default router