This commit is contained in:
Fine 2024-11-26 11:07:37 +08:00
parent 0ebcde5bde
commit 0ac0be25bc
3 changed files with 5 additions and 3 deletions

View File

@ -57,7 +57,9 @@ export const asyncProfilingStore = defineStore({
if (!params.serviceId) {
return new Promise((resolve) => resolve({}));
}
const res: AxiosResponse = await graphql.query("getAsyncTaskList").params({ ...params, limit: 10000 });
const res: AxiosResponse = await graphql
.query("getAsyncTaskList")
.params({ request: { ...params, limit: 10000 } });
this.asyncProfilingTips = "";
if (res.data.errors) {

View File

@ -26,7 +26,7 @@ limitations under the License. -->
</el-button>
</template>
</el-input>
<el-button class="search-btn" size="small" @click="createTask">
<el-button class="search-btn ml-10" @click="createTask">
{{ t("newTask") }}
</el-button>
</div>

View File

@ -49,7 +49,7 @@ limitations under the License. -->
const serviceInstanceIds = ref<string[]>([]);
const selectedEventType = ref<string>("");
const eventTypes = computed(() =>
asyncProfilingStore.selectedTask.eventTypes.map((d: string) => ({ label: d, value: d })),
(asyncProfilingStore.selectedTask.eventTypes || []).map((d: string) => ({ label: d, value: d })),
);
const instances = computed(() =>
asyncProfilingStore.instances.filter((d: Instance) =>