소스 검색

fix taskmanager

svalavuo 22 시간 전
부모
커밋
76a0c60ae5
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      frontend/src/components/projects/TaskManagementSection.vue

+ 3 - 3
frontend/src/components/projects/TaskManagementSection.vue

@@ -574,7 +574,7 @@ export default {
     
     async loadWorkHours(taskId) {
       try {
-        const response = await api.get(`/api/work_hours.php?task_id=${taskId}`)
+        const response = await api.get(`/work_hours.php?task_id=${taskId}`)
         if (response.data.success) {
           this.workHours = response.data.data
           this.workHoursSummary = {
@@ -729,7 +729,7 @@ export default {
     async deleteWorkHour(workHourId) {
       if (confirm('Haluatko varmasti poistaa tämän työtunnin?')) {
         try {
-          const response = await api.delete(`/api/work_hours.php?id=${workHourId}`)
+          const response = await api.delete(`/work_hours.php?id=${workHourId}`)
           if (response.data.success) {
             this.loadWorkHours(this.selectedTask.id)
             this.loadTasks() // Refresh tasks to update total hours
@@ -742,7 +742,7 @@ export default {
     
     async loadTaskClientInfo(taskId) {
       try {
-        const response = await api.get(`/api/work_hours.php?task_id=${taskId}`)
+        const response = await api.get(`/work_hours.php?task_id=${taskId}`)
         if (response.data.success && response.data.data.length > 0) {
           const firstWorkHour = response.data.data[0]
           this.selectedTask.client_hour_price = firstWorkHour.client_hour_price