fix link dashboards

This commit is contained in:
Qiuxia Fan 2022-03-21 21:25:21 +08:00
parent bc57e2e368
commit b002237210

View File

@ -297,9 +297,11 @@ async function setLegend() {
} }
function changeNodeDashboard(opt: any) { function changeNodeDashboard(opt: any) {
states.nodeDashboard = opt[0].value; states.nodeDashboard = opt[0].value;
updateSettings();
} }
function changeLinkDashboard(opt: any) { function changeLinkDashboard(opt: any) {
states.linkDashboard = opt[0].value; states.linkDashboard = opt[0].value;
updateSettings();
} }
function changeLegend(type: string, opt: any, index: number) { function changeLegend(type: string, opt: any, index: number) {
(legend.metric[index] as any)[type] = opt[0].value || opt; (legend.metric[index] as any)[type] = opt[0].value || opt;