mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 07:36:14 +00:00
update param
This commit is contained in:
parent
d1589f3d1b
commit
8d4184e0ab
@ -49,11 +49,16 @@ export const asyncProfilingStore = defineStore({
|
||||
setSelectedTask(task: Recordable<AsyncProfilingTask>) {
|
||||
this.selectedTask = task || {};
|
||||
},
|
||||
async getTaskList(params?: { startTime: number; endTime: number }) {
|
||||
async getTaskList() {
|
||||
const { duration } = useAppStoreWithOut();
|
||||
const selectorStore = useSelectorStore();
|
||||
const res: AxiosResponse = await graphql
|
||||
.query("getAsyncTaskList")
|
||||
.params({ request: { ...params, limit: 10000, serviceId: selectorStore.currentService.id } });
|
||||
const res: AxiosResponse = await graphql.query("getAsyncTaskList").params({
|
||||
request: {
|
||||
startTime: duration.start.getTime(),
|
||||
endTime: duration.end.getTime(),
|
||||
serviceId: selectorStore.currentService.id,
|
||||
},
|
||||
});
|
||||
if (res.data.errors) {
|
||||
return res.data;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user