|
|
@@ -27,7 +27,7 @@ const productionTopList = computed(() => productionList.value.slice(0, 9))
|
|
|
const deviceExceptionCount = ref(0)
|
|
|
|
|
|
function getCreateTime(type: TimeRange) {
|
|
|
- const now = dayjs()
|
|
|
+ const now = type === 'day' ? dayjs().subtract(1, 'day') : dayjs()
|
|
|
const start = now.startOf(type === 'day' ? 'day' : type === 'year' ? 'year' : type)
|
|
|
const end = now.endOf(type === 'day' ? 'day' : type === 'year' ? 'year' : type)
|
|
|
|