fix: remove All from the endpoints selector from profiling

This commit is contained in:
Fine0830 2022-09-19 14:05:09 +08:00 committed by GitHub
parent 214b34ddfd
commit 4561e2e374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ export const routesGen: Array<RouteRecordRaw> = [
},
component: () =>
import(/* webpackChunkName: "layer" */ "@/views/Layer.vue"),
},
},
{
path: "/database/tab/:activeTabIndex",
name: "VirtualDatabaseActiveTabIndex",

View File

@ -83,7 +83,7 @@ export const profileStore = defineStore({
if (res.data.errors) {
return res.data;
}
this.endpoints = [{ value: "", label: "All" }, ...res.data.data.pods];
this.endpoints = res.data.data.pods || [];
return res.data;
},
async getTaskEndpoints(serviceId: string, keyword?: string) {