mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 08:17:33 +00:00
fix: dest endpoint selector
This commit is contained in:
parent
cb39218a52
commit
3d9a23f9aa
@ -83,8 +83,8 @@ limitations under the License. -->
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getPathNames() {
|
function getPathNames() {
|
||||||
const dashboard = dashboardStore.currentDashboard;
|
|
||||||
pathNames.value = [];
|
pathNames.value = [];
|
||||||
|
const dashboard = dashboardStore.currentDashboard;
|
||||||
const root =
|
const root =
|
||||||
dashboardStore.dashboards.filter((d: DashboardItem) => d.isRoot && dashboard.layer === d.layer)[0] || {};
|
dashboardStore.dashboards.filter((d: DashboardItem) => d.isRoot && dashboard.layer === d.layer)[0] || {};
|
||||||
for (const item of appStore.allMenus) {
|
for (const item of appStore.allMenus) {
|
||||||
|
@ -184,7 +184,7 @@ export const selectorStore = defineStore({
|
|||||||
if (isRelation) {
|
if (isRelation) {
|
||||||
this.currentDestPod = res.data.data.instance || null;
|
this.currentDestPod = res.data.data.instance || null;
|
||||||
this.destPods = [res.data.data.instance];
|
this.destPods = [res.data.data.instance];
|
||||||
return;
|
return res.data;
|
||||||
}
|
}
|
||||||
this.currentPod = res.data.data.instance || null;
|
this.currentPod = res.data.data.instance || null;
|
||||||
this.pods = [res.data.data.instance];
|
this.pods = [res.data.data.instance];
|
||||||
@ -199,16 +199,16 @@ export const selectorStore = defineStore({
|
|||||||
const res: AxiosResponse = await graphql.query("queryEndpoint").params({
|
const res: AxiosResponse = await graphql.query("queryEndpoint").params({
|
||||||
endpointId,
|
endpointId,
|
||||||
});
|
});
|
||||||
if (!res.data.errors) {
|
if (res.data.errors) {
|
||||||
|
return res.data;
|
||||||
|
}
|
||||||
if (isRelation) {
|
if (isRelation) {
|
||||||
this.currentDestPod = res.data.data.endpoint || null;
|
this.currentDestPod = res.data.data.endpoint || null;
|
||||||
this.destPods = [res.data.data.endpoint];
|
this.destPods = [res.data.data.endpoint];
|
||||||
return;
|
return res.data;
|
||||||
}
|
}
|
||||||
this.currentPod = res.data.data.endpoint || null;
|
this.currentPod = res.data.data.endpoint || null;
|
||||||
this.pods = [res.data.data.endpoint];
|
this.pods = [res.data.data.endpoint];
|
||||||
}
|
|
||||||
|
|
||||||
return res.data;
|
return res.data;
|
||||||
},
|
},
|
||||||
async getProcess(processId: string, isRelation?: boolean) {
|
async getProcess(processId: string, isRelation?: boolean) {
|
||||||
@ -222,7 +222,7 @@ export const selectorStore = defineStore({
|
|||||||
if (isRelation) {
|
if (isRelation) {
|
||||||
this.currentDestProcess = res.data.data.process || null;
|
this.currentDestProcess = res.data.data.process || null;
|
||||||
this.destProcesses = [res.data.data.process];
|
this.destProcesses = [res.data.data.process];
|
||||||
return;
|
return res.data;
|
||||||
}
|
}
|
||||||
this.currentProcess = res.data.data.process || null;
|
this.currentProcess = res.data.data.process || null;
|
||||||
this.processes = [res.data.data.process];
|
this.processes = [res.data.data.process];
|
||||||
|
Loading…
Reference in New Issue
Block a user