mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 09:00:50 +00:00
fix selectors
This commit is contained in:
parent
4b420f1e2d
commit
21778fb399
@ -65,7 +65,8 @@ export const selectorStore = defineStore({
|
|||||||
this.currentDestPod = pod;
|
this.currentDestPod = pod;
|
||||||
},
|
},
|
||||||
setCurrentProcess(process: Nullable<Process>) {
|
setCurrentProcess(process: Nullable<Process>) {
|
||||||
this.currentPod = process;
|
console.log(process);
|
||||||
|
this.currentProcess = process;
|
||||||
},
|
},
|
||||||
setCurrentDestProcess(process: Nullable<Process>) {
|
setCurrentDestProcess(process: Nullable<Process>) {
|
||||||
this.currentDestPod = process;
|
this.currentDestPod = process;
|
||||||
@ -74,7 +75,7 @@ export const selectorStore = defineStore({
|
|||||||
this.destPods = pods;
|
this.destPods = pods;
|
||||||
},
|
},
|
||||||
setDestProcesses(processes: Array<Process>) {
|
setDestProcesses(processes: Array<Process>) {
|
||||||
this.destPods = processes;
|
this.destProcess = processes;
|
||||||
},
|
},
|
||||||
async fetchLayers(): Promise<AxiosResponse> {
|
async fetchLayers(): Promise<AxiosResponse> {
|
||||||
const res: AxiosResponse = await graphql.query("queryLayers").params({});
|
const res: AxiosResponse = await graphql.query("queryLayers").params({});
|
||||||
|
@ -213,7 +213,10 @@ export default defineComponent({
|
|||||||
watch(
|
watch(
|
||||||
() => [selectorStore.currentPod, selectorStore.currentDestPod],
|
() => [selectorStore.currentPod, selectorStore.currentDestPod],
|
||||||
() => {
|
() => {
|
||||||
if (dashboardStore.entity === EntityType[0].value) {
|
if (
|
||||||
|
dashboardStore.entity === EntityType[0].value ||
|
||||||
|
dashboardStore.entity === EntityType[7].value
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (isList.value) {
|
if (isList.value) {
|
||||||
@ -222,6 +225,14 @@ export default defineComponent({
|
|||||||
queryMetrics();
|
queryMetrics();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
watch(
|
||||||
|
() => [selectorStore.currentProcess, selectorStore.currentDestProcess],
|
||||||
|
() => {
|
||||||
|
if (dashboardStore.entity === EntityType[7].value) {
|
||||||
|
queryMetrics();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
watch(
|
watch(
|
||||||
() => appStore.durationTime,
|
() => appStore.durationTime,
|
||||||
() => {
|
() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user