feat: update instanceList and endpointList

This commit is contained in:
Qiuxia Fan
2022-01-17 17:58:23 +08:00
parent 9531e74f56
commit 652b3f2bbc
7 changed files with 55 additions and 18 deletions

View File

@@ -83,10 +83,13 @@ export const selectorStore = defineStore({
}
return res.data;
},
async getEndpoints(params: {
keyword: string;
async getEndpoints(params?: {
keyword?: string;
serviceId?: string;
}): Promise<AxiosResponse> {
if (!params) {
params = {};
}
if (!params.keyword) {
params.keyword = "";
}