mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 00:37:33 +00:00
fix
This commit is contained in:
parent
a12d1080b4
commit
ecb205d7ac
@ -86,9 +86,10 @@ const items = Object.keys(filters).map((d: string) => {
|
||||
});
|
||||
const conditions = ref(items[0].key);
|
||||
|
||||
if (filters.id) {
|
||||
init();
|
||||
} else {
|
||||
init();
|
||||
|
||||
async function init() {
|
||||
if (!filters.id) {
|
||||
state.service = selectorStore.currentService.id;
|
||||
if (dashboardStore.entity === EntityType[2].value) {
|
||||
state.instance = selectorStore.currentPod.id;
|
||||
@ -96,9 +97,9 @@ if (filters.id) {
|
||||
if (dashboardStore.entity === EntityType[3].value) {
|
||||
state.endpoint = selectorStore.currentPod.id;
|
||||
}
|
||||
queryTraces();
|
||||
}
|
||||
async function init() {
|
||||
await queryTraces();
|
||||
return;
|
||||
}
|
||||
if (dashboardStore.entity === EntityType[1].value) {
|
||||
await getService();
|
||||
}
|
||||
@ -147,16 +148,12 @@ function setCondition() {
|
||||
maxTraceDuration: undefined,
|
||||
tags: tagsMap.value.length ? tagsMap.value : undefined,
|
||||
paging: { pageNum: 1, pageSize: 20 },
|
||||
};
|
||||
// topList
|
||||
if (filters.id) {
|
||||
params = {
|
||||
...params,
|
||||
serviceId: state.service || undefined,
|
||||
endpointId: state.endpoint || undefined,
|
||||
serviceInstanceId: state.instance || undefined,
|
||||
};
|
||||
} else {
|
||||
// echarts
|
||||
if (!filters.id) {
|
||||
for (const k of items) {
|
||||
if (k.key === conditions.value) {
|
||||
params[k.value] = filters[k.key];
|
||||
|
Loading…
Reference in New Issue
Block a user