From ca56d10080b81a230f774c5dab033a66f3b215fd Mon Sep 17 00:00:00 2001 From: Fine Date: Sat, 14 Jan 2023 16:15:09 +0800 Subject: [PATCH] feat: update routes --- src/router/dashboard.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/router/dashboard.ts b/src/router/dashboard.ts index ed554960..93532b71 100644 --- a/src/router/dashboard.ts +++ b/src/router/dashboard.ts @@ -178,7 +178,7 @@ export const routesDashboard: Array = [ }, { path: "", - redirect: "/widget/:entityScope/:metricName/:title/:metricType/:graph/:calculation", + redirect: "/widget/:config", name: "Widget", component: () => import("@/views/dashboard/Widget.vue"), meta: { @@ -186,12 +186,7 @@ export const routesDashboard: Array = [ }, children: [ { - path: "/widget/:entityScope/:metricName/:title/:metricType/:graph/:calculation", - component: () => import("@/views/dashboard/Widget.vue"), - name: "ViewWidget", - }, - { - path: "/widget/:entityScope/:metricName/:title/:metricType/:graph/:calculation/:duration", + path: "/widget/:config", component: () => import("@/views/dashboard/Widget.vue"), name: "ViewWidget", },