File tree 1 file changed +31
-2
lines changed
1 file changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -84,15 +84,44 @@ import Chart from 'chart.js/auto';
84
84
import { onMounted , ref } from ' vue' ;
85
85
import { useRouter } from ' vue-router' ;
86
86
87
- const everyDayWordCount = ref ([]);
87
+ const everyDayWordCount = ref ([
88
+ {
89
+ year: ' 周一' ,
90
+ count: 0 ,
91
+ },
92
+ {
93
+ year: ' 周二' ,
94
+ count: 0 ,
95
+ },
96
+ {
97
+ year: ' 周三' ,
98
+ count: 0 ,
99
+ },
100
+ {
101
+ year: ' 周四' ,
102
+ count: 0 ,
103
+ },
104
+ {
105
+ year: ' 周五' ,
106
+ count: 0 ,
107
+ },
108
+ {
109
+ year: ' 周六' ,
110
+ count: 0 ,
111
+ },
112
+ {
113
+ year: ' 周日' ,
114
+ count: 0 ,
115
+ },
116
+ ]);
88
117
const todayWordCount = ref (0 );
89
118
const router = useRouter ();
90
119
const defaultGroupID = ref (' ' );
91
120
92
121
onMounted (async () => {
93
122
await getGroupList ();
123
+ getTodayWordCount ();
94
124
await getEveryDayWordCount ();
95
- await getTodayWordCount ();
96
125
createCollectionChart ();
97
126
});
98
127
You can’t perform that action at this time.
0 commit comments