Skip to content

Commit

Permalink
fix(access-log):修复流水日志图表缩放问题
Browse files Browse the repository at this point in the history
  • Loading branch information
shuzhenyang committed Nov 4, 2024
1 parent e0a7a49 commit 4175924
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,9 @@ const getSearchData = async () => {
]);
chartData.value = chartRes || {};
renderChart(chartData.value);
chartInstance.value?.dispatchAction({
type: 'restore',
});
table.value = Object.assign(table.value, {
list: listRes?.results || [],
fields: listRes?.fields || [],
Expand Down Expand Up @@ -839,10 +842,6 @@ const initChart = async () => {
dateTimeRange.value = [];
shortcutSelectedIndex.value = 1;
[datePickerRef.value.shortcut] = [AccessLogStore.datepickerShortcuts[1]];
chartInstance.value.dispatchAction({
type: 'restore',
});
} else {
shortcutSelectedIndex.value = -1;
dateTimeRange.value = [new Date(startTime), new Date(endTime)];
Expand Down

0 comments on commit 4175924

Please sign in to comment.