From a15e0a4864686980e42f2f82e44e24fbccc48189 Mon Sep 17 00:00:00 2001 From: rivery Date: Tue, 12 Jul 2022 10:30:45 +0800 Subject: [PATCH] fix: metric wrong issue --- src/store/models/service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/models/service.ts b/src/store/models/service.ts index 0186c9f6..0f6546ca 100644 --- a/src/store/models/service.ts +++ b/src/store/models/service.ts @@ -117,6 +117,7 @@ export function SereviceModelWrapper(serviceApi) { stat = data.result; } const list = stat.map(item => { + const instanceName = item.metric.instanceName || item.metric.instance; return instanceName.slice(0, instanceName.indexOf('-')) }); this.updateInstanceList(list)