mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-20 14:57:35 +00:00
fix link
This commit is contained in:
parent
632e5089a7
commit
0d0e9e01aa
@ -166,7 +166,9 @@ function goDashboard() {
|
|||||||
});
|
});
|
||||||
dashboardStore.setEntity(entity);
|
dashboardStore.setEntity(entity);
|
||||||
dashboardStore.setCurrentDashboard(d);
|
dashboardStore.setCurrentDashboard(d);
|
||||||
const path = `/dashboard/${d.layer}/${entity}/${topologyStore.node.serviceId}/${topologyStore.node.id}/${d.name}`;
|
const path = `/dashboard/${d.layer}/${entity}/${
|
||||||
|
topologyStore.node.serviceId
|
||||||
|
}/${topologyStore.node.id}/${d.name.split(" ").join("-")}`;
|
||||||
const routeUrl = router.resolve({ path });
|
const routeUrl = router.resolve({ path });
|
||||||
window.open(routeUrl.href, "_blank");
|
window.open(routeUrl.href, "_blank");
|
||||||
topologyStore.setNode(null);
|
topologyStore.setNode(null);
|
||||||
@ -205,7 +207,9 @@ function selectNodeLink(d: any) {
|
|||||||
entity,
|
entity,
|
||||||
});
|
});
|
||||||
dashboardStore.setEntity(entity);
|
dashboardStore.setEntity(entity);
|
||||||
const path = `/dashboard/${p.layer}/${entity}/${sourceObj.serviceId}/${sourceObj.id}/${targetObj.serviceId}/${targetObj.id}/${p.name}`;
|
const path = `/dashboard/${p.layer}/${entity}/${sourceObj.serviceId}/${
|
||||||
|
sourceObj.id
|
||||||
|
}/${targetObj.serviceId}/${targetObj.id}/${p.name.split(" ").join("-")}`;
|
||||||
const routeUrl = router.resolve({ path });
|
const routeUrl = router.resolve({ path });
|
||||||
window.open(routeUrl.href, "_blank");
|
window.open(routeUrl.href, "_blank");
|
||||||
return;
|
return;
|
||||||
|
@ -389,10 +389,6 @@ function deleteMetric(index: number) {
|
|||||||
function addMetric() {
|
function addMetric() {
|
||||||
legend.metric.push({ name: "", condition: "", value: "" });
|
legend.metric.push({ name: "", condition: "", value: "" });
|
||||||
}
|
}
|
||||||
function saveConfig() {
|
|
||||||
console.log(dashboardStore.selectedGrid);
|
|
||||||
dashboardStore.setConfigs(dashboardStore.selectedGrid);
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.link-settings {
|
.link-settings {
|
||||||
|
Loading…
Reference in New Issue
Block a user