Skip to content

Commit 21f65ae

Browse files
committed
Usage 조회 화면 초기세팅(startdate:어제날짜, enddate:오늘날짜) 후 조회되도록 기능 수정
1 parent ed5f468 commit 21f65ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ui/src/views/infra/UsageRecords.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,9 @@ export default {
425425
beforeCreate () {
426426
this.apiParams = this.$getApiParams('listUsageRecords')
427427
},
428+
mounted () {
429+
this.listUsageRecords()
430+
},
428431
created () {
429432
this.rangePresets[this.$t('label.range.today')] = [dayjs(), dayjs()]
430433
this.rangePresets[this.$t('label.range.yesterday')] = [dayjs().add(-1, 'd'), dayjs().add(-1, 'd')]
@@ -461,7 +464,7 @@ export default {
461464
account: null,
462465
type: null,
463466
id: null,
464-
dateRange: [],
467+
dateRange: [dayjs().add(-1, 'd'), dayjs()],
465468
isRecursive: false
466469
})
467470
this.rules = reactive({

0 commit comments

Comments
 (0)