Skip to content

Commit 1135ca6

Browse files
committed
fix data belongs to which hour with ds dashboard charts
1 parent c8c0b32 commit 1135ca6

File tree

1 file changed

+1
-1
lines changed
  • web/src/apps/workflows/module/dispatch/dashboard

1 file changed

+1
-1
lines changed

web/src/apps/workflows/module/dispatch/dashboard/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export default {
219219
res.totalList.forEach(item => {
220220
item.startTime = formatDate(item.startTime)
221221
item.endTime = formatDate(item.endTime)
222-
let curHour = new Date(item.startTime).getHours() + 1
222+
let curHour = new Date(item.startTime).getHours()
223223
objTotal[curHour] = objTotal[curHour] + 1
224224
let curState = item.state
225225
if (curState === 'SUCCESS') {

0 commit comments

Comments
 (0)