dataControl/src/router/index.js

58 lines
1.4 KiB
Vue
Raw Normal View History

2023-11-12 09:47:28 +08:00
import { createRouter, createWebHashHistory } from 'vue-router'
const router = createRouter({
history: createWebHashHistory(), // hash模式createWebHashHistoryhistory模式createWebHistory
routes: [
{
path: '/',
redirect: '/home'
},
{
path: '/home',
name: 'home',
component: () => import(/* webpackChunkName: "home" */ '../views/Home.vue')
},
{
path: '/login',
name: 'login',
component: () => import(/* webpackChunkName: "login" */ '../views/Login.vue')
},
{
path: '/net',
name: 'level',
component: () => import('../views/Level.vue')
},
{
path: '/model',
name: 'model',
component: () => import('../views/Model.vue')
},
{
path: '/page',
name: 'page',
component: () => import('../views/Page.vue')
},
2024-04-16 14:48:50 +08:00
// {
// path: '/data',
// name: 'data',
// component: () => import('../views/Data.vue')
// },
// {
// path: '/report',
// name: 'report',
// component: () => import('../views/Report.vue')
// },
// {
// path: '/transparent',
// name: 'transparent',
// component: () => import('../views/Transparent.vue')
// },
// {
// path: '/rules',
// name: 'rules',
// component: () => import('../views/Rules.vue')
// }
2023-11-12 09:47:28 +08:00
]
})
export default router