feat: update selectors

This commit is contained in:
Qiuxia Fan
2022-01-25 16:33:21 +08:00
parent 8cd5dbc74d
commit 829ae69f0f
2 changed files with 41 additions and 23 deletions

View File

@@ -48,7 +48,6 @@ export const selectorStore = defineStore({
this.currentService = service;
},
setCurrentPod(pod: Nullable<Instance | Endpoint>) {
console.log(pod);
this.currentPod = pod;
},
async fetchLayers(): Promise<AxiosResponse> {
@@ -115,6 +114,7 @@ export const selectorStore = defineStore({
});
if (!res.data.errors) {
this.currentService = res.data.data.service || {};
this.services = [res.data.data.service];
}
return res.data;