2025-04-01 13:57:54 +08:00
|
|
|
import { createRouter, createWebHashHistory } from 'vue-router'
|
|
|
|
|
import HomeView from '../views/HomeView.vue'
|
|
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
|
|
|
|
name: 'home',
|
|
|
|
|
component: HomeView
|
|
|
|
|
},
|
|
|
|
|
{
|
2025-04-03 16:41:54 +08:00
|
|
|
path: '/hostsList',
|
|
|
|
|
name: 'hostsList',
|
|
|
|
|
component: () => import(/* webpackChunkName: "hostsList" */ '../views/hostsList.vue')
|
2025-04-01 13:57:54 +08:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
|
history: createWebHashHistory(),
|
|
|
|
|
routes
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export default router
|