fix: reset current dashboard due to pages forwarding (#34)

This commit is contained in:
Fine0830
2022-03-23 13:28:47 +08:00
committed by GitHub
parent 049f46a4cf
commit 93161b6ec9
9 changed files with 86 additions and 141 deletions

View File

@@ -27,17 +27,24 @@ export const routesInfra: Array<RouteRecordRaw> = [
exact: true,
hasGroup: true,
},
redirect: "/infrastructure",
redirect: "/linux",
component: Layout,
children: [
{
path: "/infrastructure",
path: "/linux",
name: "Linux",
meta: {
title: "linux",
},
component: () => import("@/views/Layer.vue"),
// component: () => import("@/views/infrastructure/Infrastructure.vue"),
},
{
path: "/kubernetes",
name: "Kubernetes",
meta: {
title: "kubernetes",
},
component: () => import("@/views/Layer.vue"),
},
// {
// path: "/infrastructure/vm",