Skip to content

Commit

Permalink
feat: 事件插件time字段适配
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 28633
  • Loading branch information
liangling0628 committed Jan 7, 2025
1 parent 74bb5e3 commit 8f1c8c5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/event/src/datasource/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,12 @@ export default class DashboardDatasource extends DataSourceApi<QueryData, QueryO
url,
})
.then((data: QueryFetchData) =>
isTableQuery ? data : this.buildFetchSeries(data, options.scopedVars, config.alias, config),
isTableQuery
? data?.map(item => ({
...item,
rows: item?.rows?.map(row => (row?.length ? [row[0] * 1000, ...row.slice(1)] : row)),
}))
: this.buildFetchSeries(data, options.scopedVars, config.alias, config),
)
.catch(() => []),
);
Expand Down

0 comments on commit 8f1c8c5

Please sign in to comment.