You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
52 lines
1.2 KiB
import { createRouter, createWebHashHistory } from 'vue-router' |
|
import MainLayout from '@/components/MainLayout.vue' |
|
import Home from '@/views/Home.vue' |
|
import History from '@/views/History.vue' |
|
import UserManagement from '@/views/UserManagement.vue' |
|
// import UserProfile from '@/views/UserProfile.vue' |
|
|
|
const routes = [ |
|
{ |
|
path: '/', |
|
component: MainLayout, |
|
children: [ |
|
{ |
|
path: '', |
|
name: 'Home', |
|
component: Home |
|
}, |
|
{ |
|
path: '/history', |
|
name: 'History', |
|
component: History |
|
}, |
|
{ |
|
path: '/user-management', |
|
name: 'UserManagement', |
|
component: UserManagement |
|
}, |
|
{ |
|
path: '/speed-test', |
|
name: 'SpeedTest', |
|
component: () => import('@/components/SpeedTest.vue') |
|
}, |
|
{ |
|
path: '/settings', |
|
name: 'Settings', |
|
component: () => import('@/views/Settings.vue') |
|
}, |
|
{ |
|
path: '/user-profile', |
|
name: 'UserProfile', |
|
component: () => import('@/views/UserProfile.vue') |
|
} |
|
] |
|
} |
|
] |
|
|
|
const router = createRouter({ |
|
history: createWebHashHistory(), |
|
routes |
|
}) |
|
|
|
export default router |