jichoi / lms_front star
박민혁 박민혁 08-22
240822 박민혁 로드맵 수정
@fffc37207e8b9b4987547aff57bc0904b4b4e559
client/views/pages/teacher/RoadMap.vue
--- client/views/pages/teacher/RoadMap.vue
+++ client/views/pages/teacher/RoadMap.vue
@@ -1563,8 +1563,6 @@
                 axios.post("/problemBook/registerExist.json", changedProblemList)
                     .then(response => {
                         console.log("Problems updated successfully:", response.data);
-                        this.fetchRoadmapData();
-                        alert("학습 로드맵 문제 수정이 완료되었습니다!");
                     })
                     .catch(error => {
                         console.error("Error during updating problems:", error);
@@ -1572,6 +1570,9 @@
             } else {
                 console.log("No changes detected in prblm_id.");
             }
+
+            alert("학습 로드맵 문제 수정이 완료되었습니다!");
+            this.fetchRoadmapData();
         },
     },
     watch: {
Add a comment
List