mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 08:17:33 +00:00
feat: fresh nodes
This commit is contained in:
parent
367f95332e
commit
df5f04a025
@ -189,6 +189,9 @@ limitations under the License. -->
|
|||||||
ElMessage.error(json.errors);
|
ElMessage.error(json.errors);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
freshNodes();
|
||||||
|
}
|
||||||
|
async function freshNodes() {
|
||||||
const resp = await getTopology();
|
const resp = await getTopology();
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
|
|
||||||
@ -203,9 +206,6 @@ limitations under the License. -->
|
|||||||
draw();
|
draw();
|
||||||
tooltip.value = d3.select("#tooltip");
|
tooltip.value = d3.select("#tooltip");
|
||||||
setNodeTools(settings.value.nodeDashboard);
|
setNodeTools(settings.value.nodeDashboard);
|
||||||
if (!svg.value) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
function draw() {
|
function draw() {
|
||||||
const levels = [];
|
const levels = [];
|
||||||
@ -484,16 +484,9 @@ limitations under the License. -->
|
|||||||
topologyStore.setLink(null);
|
topologyStore.setLink(null);
|
||||||
dashboardStore.selectWidget(props.config);
|
dashboardStore.selectWidget(props.config);
|
||||||
}
|
}
|
||||||
async function freshNodes() {
|
|
||||||
if (!svg.value) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
svg.value.selectAll(".topo-svg-graph").remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
async function changeDepth(opt: Option[] | any) {
|
async function changeDepth(opt: Option[] | any) {
|
||||||
depth.value = opt[0].value;
|
depth.value = opt[0].value;
|
||||||
await getTopology();
|
|
||||||
freshNodes();
|
freshNodes();
|
||||||
}
|
}
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user