From 93161b6ec9b359f0af34f0180c1769769e2b8e3a Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Wed, 23 Mar 2022 13:28:47 +0800 Subject: [PATCH] fix: reset current dashboard due to pages forwarding (#34) --- src/router/infrastructure.ts | 13 ++- src/views/Layer.vue | 106 +++++------------- src/views/dashboard/Edit.vue | 12 +- src/views/dashboard/graphs/EndpointList.vue | 2 - src/views/dashboard/graphs/InstanceList.vue | 22 +--- src/views/dashboard/graphs/ServiceList.vue | 2 - src/views/dashboard/panel/Layout.vue | 8 +- src/views/dashboard/panel/Tool.vue | 32 ++++-- .../related/topology/components/Graph.vue | 30 +---- 9 files changed, 86 insertions(+), 141 deletions(-) diff --git a/src/router/infrastructure.ts b/src/router/infrastructure.ts index 2450e82a..8a2783c7 100644 --- a/src/router/infrastructure.ts +++ b/src/router/infrastructure.ts @@ -27,17 +27,24 @@ export const routesInfra: Array = [ 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", diff --git a/src/views/Layer.vue b/src/views/Layer.vue index b7f3210c..16ef43f3 100644 --- a/src/views/Layer.vue +++ b/src/views/Layer.vue @@ -14,101 +14,61 @@ See the License for the specific language governing permissions and limitations under the License. --> diff --git a/src/views/dashboard/Edit.vue b/src/views/dashboard/Edit.vue index eb62f74c..595a089f 100644 --- a/src/views/dashboard/Edit.vue +++ b/src/views/dashboard/Edit.vue @@ -13,9 +13,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->