Skip to content

Commit

Permalink
✨ Add default data.
Browse files Browse the repository at this point in the history
  • Loading branch information
tolerious committed Feb 2, 2025
1 parent dffb95f commit 05b159d
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions src/views/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,44 @@ import Chart from 'chart.js/auto';
import { onMounted, ref } from 'vue';
import { useRouter } from 'vue-router';
const everyDayWordCount = ref([]);
const everyDayWordCount = ref([
{
year: '周一',
count: 0,
},
{
year: '周二',
count: 0,
},
{
year: '周三',
count: 0,
},
{
year: '周四',
count: 0,
},
{
year: '周五',
count: 0,
},
{
year: '周六',
count: 0,
},
{
year: '周日',
count: 0,
},
]);
const todayWordCount = ref(0);
const router = useRouter();
const defaultGroupID = ref('');
onMounted(async () => {
await getGroupList();
getTodayWordCount();
await getEveryDayWordCount();
await getTodayWordCount();
createCollectionChart();
});
Expand Down

0 comments on commit 05b159d

Please sign in to comment.