mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 00:08:56 +00:00
fix: path
This commit is contained in:
parent
b60ec495c6
commit
f9119e18d9
@ -86,7 +86,7 @@ limitations under the License. -->
|
|||||||
pathNames.value = [];
|
pathNames.value = [];
|
||||||
pageTitle.value = "";
|
pageTitle.value = "";
|
||||||
const dashboard = dashboardStore.currentDashboard;
|
const dashboard = dashboardStore.currentDashboard;
|
||||||
console.log(dashboard);
|
|
||||||
if (!dashboard) {
|
if (!dashboard) {
|
||||||
updateNavTitle();
|
updateNavTitle();
|
||||||
return;
|
return;
|
||||||
@ -136,9 +136,9 @@ limitations under the License. -->
|
|||||||
(d: DashboardItem) => MetricCatalog.ENDPOINT === d.entity && dashboard.layer === d.layer,
|
(d: DashboardItem) => MetricCatalog.ENDPOINT === d.entity && dashboard.layer === d.layer,
|
||||||
)[0];
|
)[0];
|
||||||
const podId = route.params.podId;
|
const podId = route.params.podId;
|
||||||
let p = `/dashboard/${serviceDashboard.layer}/${serviceDashboard.entity}/${endpointDashboard.name}`;
|
let p = `/dashboard/${endpointDashboard.layer}/${endpointDashboard.entity}/${endpointDashboard.name}`;
|
||||||
if (podId) {
|
if (podId) {
|
||||||
p = `/dashboard/${serviceDashboard.layer}/${serviceDashboard.entity}/${serviceId}/${podId}/${endpointDashboard.name}`;
|
p = `/dashboard/${endpointDashboard.layer}/${endpointDashboard.entity}/${serviceId}/${podId}/${endpointDashboard.name}`;
|
||||||
}
|
}
|
||||||
pathNames.value.push({
|
pathNames.value.push({
|
||||||
...endpointDashboard,
|
...endpointDashboard,
|
||||||
@ -150,9 +150,9 @@ 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,
|
||||||
)[0];
|
)[0];
|
||||||
const destServiceId = route.params.destServiceId;
|
const destServiceId = route.params.destServiceId;
|
||||||
let p = `/dashboard/${serviceDashboard.layer}/${serviceDashboard.entity}/${serviceRelationDashboard.name}`;
|
let p = `/dashboard/related/${serviceRelationDashboard.layer}/${serviceRelationDashboard.entity}/${serviceId}/${destServiceId}/${serviceRelationDashboard.name}`;
|
||||||
if (destServiceId) {
|
if (destServiceId) {
|
||||||
p = `/dashboard/${serviceDashboard.layer}/${serviceDashboard.entity}/${serviceId}/${destServiceId}/${serviceRelationDashboard.name}`;
|
p = `/dashboard/related/${serviceRelationDashboard.layer}/${serviceRelationDashboard.entity}/${serviceId}/${destServiceId}/${serviceRelationDashboard.name}`;
|
||||||
}
|
}
|
||||||
pathNames.value.push({
|
pathNames.value.push({
|
||||||
...serviceRelationDashboard,
|
...serviceRelationDashboard,
|
||||||
@ -164,9 +164,9 @@ limitations under the License. -->
|
|||||||
(d: DashboardItem) => MetricCatalog.SERVICE_INSTANCE === d.entity && dashboard.layer === d.layer,
|
(d: DashboardItem) => MetricCatalog.SERVICE_INSTANCE === d.entity && dashboard.layer === d.layer,
|
||||||
)[0];
|
)[0];
|
||||||
const podId = route.params.podId;
|
const podId = route.params.podId;
|
||||||
let p = `/dashboard/${serviceDashboard.layer}/${serviceDashboard.entity}/${InstanceDashboard.name}`;
|
let p = `/dashboard/${InstanceDashboard.layer}/${InstanceDashboard.entity}/${InstanceDashboard.name}`;
|
||||||
if (podId) {
|
if (podId) {
|
||||||
p = `/dashboard/${serviceDashboard.layer}/${serviceDashboard.entity}/${serviceId}/${podId}/${InstanceDashboard.name}`;
|
p = `/dashboard/${InstanceDashboard.layer}/${InstanceDashboard.entity}/${serviceId}/${podId}/${InstanceDashboard.name}`;
|
||||||
}
|
}
|
||||||
pathNames.value.push({
|
pathNames.value.push({
|
||||||
...InstanceDashboard,
|
...InstanceDashboard,
|
||||||
@ -176,6 +176,7 @@ limitations under the License. -->
|
|||||||
pathNames.value.push({
|
pathNames.value.push({
|
||||||
name: dashboard.name,
|
name: dashboard.name,
|
||||||
});
|
});
|
||||||
|
console.log(pathNames.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getVersion() {
|
async function getVersion() {
|
||||||
@ -205,13 +206,7 @@ limitations under the License. -->
|
|||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => dashboardStore.currentDashboard,
|
() => [dashboardStore.currentDashboard, route.name],
|
||||||
() => {
|
|
||||||
getNavPaths();
|
|
||||||
},
|
|
||||||
);
|
|
||||||
watch(
|
|
||||||
() => route.name,
|
|
||||||
() => {
|
() => {
|
||||||
getNavPaths();
|
getNavPaths();
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user