fix: path (#314)

This commit is contained in:
Fine0830 2023-08-30 20:05:59 +08:00 committed by GitHub
parent dce1035f2e
commit ce4608ad4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,7 +203,7 @@ limitations under the License. -->
(d: DashboardItem) => MetricCatalog.SERVICE_RELATION === d.entity && dashboard.layer === d.layer, (d: DashboardItem) => MetricCatalog.SERVICE_RELATION === d.entity && dashboard.layer === d.layer,
); );
const list = serviceRelationDashboards.map((d: { path: string } & DashboardItem, index: number) => { const list = serviceRelationDashboards.map((d: { path: string } & DashboardItem, index: number) => {
let path = `/dashboard/related/${d.layer}/${d.entity}/${serviceId}/${destServiceId}/${d.name}`; let path = `/dashboard/${d.layer}/${d.entity}/${d.name}`;
if (destServiceId) { if (destServiceId) {
path = `/dashboard/related/${d.layer}/${d.entity}/${serviceId}/${destServiceId}/${d.name}`; path = `/dashboard/related/${d.layer}/${d.entity}/${serviceId}/${destServiceId}/${d.name}`;
} }