diff --git a/src/components/PieChart.vue b/src/components/PieChart.vue index c1b22f83..2850fc7b 100644 --- a/src/components/PieChart.vue +++ b/src/components/PieChart.vue @@ -5,7 +5,7 @@ :options="options" /> + content="집계된 데이터가 없습니다" /> diff --git a/src/components/statistics/StatisticsCard.vue b/src/components/statistics/StatisticsCard.vue index 9a547990..02270d9e 100644 --- a/src/components/statistics/StatisticsCard.vue +++ b/src/components/statistics/StatisticsCard.vue @@ -53,9 +53,6 @@ const changePeriod = (newPeriodType: PeriodType) => { const fetchStatistics = async () => { const response = await axiosInstance.get('/api/tasks/statistics', { - headers: { - Authorization: `Bearer ${import.meta.env.VITE_ACCESS_TOKEN}` - }, params: { periodType: periodType.value, statisticsType @@ -66,7 +63,7 @@ const fetchStatistics = async () => { } const { data } = useQuery({ - queryKey: [statisticsType, periodType], + queryKey: computed(() => [statisticsType, periodType]), queryFn: fetchStatistics }) diff --git a/src/components/statistics/StatisticsCategoryCard.vue b/src/components/statistics/StatisticsCategoryCard.vue index 6fae0d6c..48b179f1 100644 --- a/src/components/statistics/StatisticsCategoryCard.vue +++ b/src/components/statistics/StatisticsCategoryCard.vue @@ -45,9 +45,6 @@ const changeMainCategory = (value: string) => (mainCategory.value = value) const fetchMainStatistics = async () => { const response = await axiosInstance.get('/api/tasks/statistics', { - headers: { - Authorization: `Bearer ${import.meta.env.VITE_ACCESS_TOKEN}` - }, params: { periodType: periodType.value, statisticsType: 'REQUEST_BY_CATEGORY' @@ -57,7 +54,7 @@ const fetchMainStatistics = async () => { return response.data } const { data: mainData } = useQuery({ - queryKey: ['REQUEST_BY_CATEGORY', periodType], + queryKey: computed(() => ['REQUEST_BY_CATEGORY', periodType]), queryFn: fetchMainStatistics }) const mainLabels = computed(() => { @@ -69,9 +66,6 @@ const mainSeries = computed(() => { const fetchSubStatistics = async () => { const response = await axiosInstance.get('/api/tasks/statistics/subcategory', { - headers: { - Authorization: `Bearer ${import.meta.env.VITE_ACCESS_TOKEN}` - }, params: { periodType: periodType.value, mainCategory: mainCategory.value @@ -81,7 +75,7 @@ const fetchSubStatistics = async () => { return response.data } const { data: subData } = useQuery({ - queryKey: [mainCategory.value, periodType], + queryKey: computed(() => [mainCategory.value, periodType]), queryFn: fetchSubStatistics, enabled: computed(() => mainCategory.value !== '') }) diff --git a/src/components/task-board/TaskBoard.vue b/src/components/task-board/TaskBoard.vue index 8670a4ba..07f51035 100644 --- a/src/components/task-board/TaskBoard.vue +++ b/src/components/task-board/TaskBoard.vue @@ -8,7 +8,7 @@
- 검토 중 {{ data?.tasksPendingComplete.length }} + 검토 중 {{ data?.tasksInProgress.length }}
@@ -47,7 +47,7 @@
{{ '상태를 변경할 작업을\n끌어 놓으세요' }} @@ -59,7 +59,7 @@ group="taskList" item-key="task" class="flex flex-col gap-4 h-full" - @change="event => onListChange(event, 'PENDING_COMPLETED')"> + @change="event => onListChange(event, 'IN_REVIEWING')">