fix: data

This commit is contained in:
Fine 2023-05-31 20:30:04 +08:00
parent f28998f947
commit 5e2b0a6fea
2 changed files with 4 additions and 1 deletions

View File

@ -107,6 +107,9 @@ export const continousProfilingStore = defineStore({
};
});
this.setSelectedStrategy(this.strategyList[0] || {});
if (!this.selectedStrategy.type) {
return res.data;
}
this.getContinousTaskList({
serviceId: params.serviceId,
targets: [this.selectedStrategy.type],

View File

@ -70,7 +70,7 @@ limitations under the License. -->
// const viewDetail = ref<boolean>(false);
async function changeTask(item: EBPFTaskList) {
continousProfilingStore.setSelectedContinousTask(item);
continousProfilingStore.setselectedTask(item);
}
function getURI(uri: { uriRegex: string; uriPath: string }) {