bate版本提交

This commit is contained in:
2025-04-14 21:52:19 +08:00
parent 0bbe30bc7e
commit 6a6dabeca1
15 changed files with 466 additions and 111 deletions

View File

@@ -1,4 +1,4 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
const routes = [
@@ -11,24 +11,23 @@ const routes = [
{
path: '/nav',
name: 'nav',
redirect: '/workBenches', // 默认跳转
// redirect: '/nav/hostsList', // 默认跳转
component: () => import(/* webpackChunkName: "hostsList" */ '../views/nav.vue'),
children: [
{
path: '/hostsList',
path: 'hostsList',
name: 'hostsList',
component: () => import(/* webpackChunkName: "hostsList" */ '../views/hosts/hostsList.vue')
},
{
path: '/workBenches',
path: 'workBenches',
name: 'workBenches',
component: () => import(/* webpackChunkName: "hostsList" */ '../views/hosts/workbenches.vue')
},]
}
]
const router = createRouter({
history: createWebHashHistory(),
history: createWebHistory(),
routes
})