fix process selectors

This commit is contained in:
Fine 2022-08-15 11:30:14 +08:00
parent 83bb83522f
commit 417e2627ed

View File

@ -65,17 +65,16 @@ export const selectorStore = defineStore({
this.currentDestPod = pod; this.currentDestPod = pod;
}, },
setCurrentProcess(process: Nullable<Process>) { setCurrentProcess(process: Nullable<Process>) {
console.log(process);
this.currentProcess = process; this.currentProcess = process;
}, },
setCurrentDestProcess(process: Nullable<Process>) { setCurrentDestProcess(process: Nullable<Process>) {
this.currentDestPod = process; this.currentDestProcess = process;
}, },
setDestPods(pods: Array<Instance | Endpoint>) { setDestPods(pods: Array<Instance | Endpoint>) {
this.destPods = pods; this.destPods = pods;
}, },
setDestProcesses(processes: Array<Process>) { setDestProcesses(processes: Array<Process>) {
this.destProcess = processes; this.destProcesses = 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({});