Skip to content

Commit d78074b

Browse files
authored
Merge pull request #581 from jschoiRR/mold-diplo-2024-main
[Mold UI] 사용량(Usage) 메뉴 조회시 초기값 세팅(startdate:어제일자, enddate:현재일자) 후 조회되도록 기능 수정
2 parents 8b56a44 + 21f65ae commit d78074b

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)