diff --git a/src/config/home.ts b/src/config/home.ts index 93de47e..a6635ef 100644 --- a/src/config/home.ts +++ b/src/config/home.ts @@ -1,4 +1,8 @@ export const timeOptions = [ + { + label: '全部', + value: '', + }, { label: '近3个月', value: '3', diff --git a/src/views/home/content/Content.vue b/src/views/home/content/Content.vue index 50313e5..5e22d73 100644 --- a/src/views/home/content/Content.vue +++ b/src/views/home/content/Content.vue @@ -97,7 +97,7 @@ onUpdated(() => { layout() }) -const timeRange = ref('99') +const timeRange = ref('') const timeLabel = computed(() => { const item = timeOptions.find((option) => { return option.value === timeRange.value @@ -333,14 +333,15 @@ function previewHandler(index: number,event: MouseEvent) { -
+
{{ totalCount }}