Remove await on non-promise values
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -478,29 +478,29 @@ function setActivityBgImage(mapData) {
|
||||
switch (routeParams.type) {
|
||||
case 'log':
|
||||
if(!isCheckPage) {
|
||||
logId.value = await routeParams.fileId;
|
||||
baseLogId.value = await routeParams.fileId;
|
||||
logId.value = routeParams.fileId;
|
||||
baseLogId.value = routeParams.fileId;
|
||||
} else {
|
||||
logId.value = await file.parent.id;
|
||||
baseLogId.value = await file.parent.id;
|
||||
logId.value = file.parent.id;
|
||||
baseLogId.value = file.parent.id;
|
||||
}
|
||||
break;
|
||||
case 'filter':
|
||||
if(!isCheckPage) {
|
||||
createFilterId.value = await routeParams.fileId;
|
||||
createFilterId.value = routeParams.fileId;
|
||||
} else {
|
||||
createFilterId.value = await file.parent.id;
|
||||
createFilterId.value = file.parent.id;
|
||||
}
|
||||
await allMapDataStore.fetchFunnel(createFilterId.value);
|
||||
isRuleData.value = await Array.from(temporaryData.value);
|
||||
ruleData.value = await isRuleData.value.map(e => sidebarFilterRefComp.value.setRule(e));
|
||||
isRuleData.value = Array.from(temporaryData.value);
|
||||
ruleData.value = isRuleData.value.map(e => sidebarFilterRefComp.value.setRule(e));
|
||||
break;
|
||||
}
|
||||
await allMapDataStore.getAllMapData();
|
||||
await allMapDataStore.getAllTrace();
|
||||
|
||||
traceId.value = await traces.value[0]?.id;
|
||||
baseTraceId.value = await baseTraces.value[0]?.id;
|
||||
traceId.value = traces.value[0]?.id;
|
||||
baseTraceId.value = baseTraces.value[0]?.id;
|
||||
await createCy(mapType.value);
|
||||
await allMapDataStore.getFilterParams();
|
||||
await allMapDataStore.getTraceDetail();
|
||||
|
||||
@@ -912,9 +912,9 @@ function getAvgWaitingTimeLineChart(chartData, content, yUnit) {
|
||||
let id;
|
||||
|
||||
if(!isCheckPage) {
|
||||
id = await routeParams.fileId;
|
||||
id = routeParams.fileId;
|
||||
} else {
|
||||
id = await file.parent.id;
|
||||
id = file.parent.id;
|
||||
}
|
||||
|
||||
// 取得 Performance Data
|
||||
@@ -923,11 +923,11 @@ function getAvgWaitingTimeLineChart(chartData, content, yUnit) {
|
||||
isLoading.value = false;
|
||||
return;
|
||||
}
|
||||
avgProcessTimeByTaskHeight.value = await getHorizontalBarHeight(performanceData.value.time.avg_process_time_by_task);
|
||||
avgProcessTimeByTaskHeight.value = getHorizontalBarHeight(performanceData.value.time.avg_process_time_by_task);
|
||||
if(performanceData.value.time.avg_waiting_time_by_edge !== null) {
|
||||
avgWaitingTimeByEdgeHeight.value = await getHorizontalBarHeight(performanceData.value.time.avg_waiting_time_by_edge);
|
||||
avgWaitingTimeByEdgeHeight.value = getHorizontalBarHeight(performanceData.value.time.avg_waiting_time_by_edge);
|
||||
}
|
||||
casesByTaskHeight.value = await getHorizontalBarHeight(performanceData.value.freq.cases_by_task);
|
||||
casesByTaskHeight.value = getHorizontalBarHeight(performanceData.value.freq.cases_by_task);
|
||||
// create chart
|
||||
[avgCycleTimeData.value, avgCycleTimeOptions.value] = getExplicitDeclaredLineChart(performanceData.value.time.avg_cycle_time,
|
||||
contentData.avgCycleTime, 'date');
|
||||
|
||||
Reference in New Issue
Block a user