jichoi / lms_front star
이은진 이은진 08-21
240821 이은진 대시보드 사진첩 수정
@907a9c1721a36ba986dd2b04d95aed2b1c5257b7
client/views/pages/main/AIDashboard.vue
--- client/views/pages/main/AIDashboard.vue
+++ client/views/pages/main/AIDashboard.vue
@@ -260,7 +260,7 @@
                     "Content-Type": "application/json; charset=UTF-8",
                 },
                 data: {
-                    unitId: "UNIT_000000000000001",
+                    unitId: "UNIT_000000000000001", // 수정해야함
                     sclsId: "1"
                 }
             })
client/views/pages/main/Dashboard.vue
--- client/views/pages/main/Dashboard.vue
+++ client/views/pages/main/Dashboard.vue
@@ -300,7 +300,7 @@
                 console.error("book_id 또는 unit_id가 설정되지 않았습니다.");
                 return;
             }
-            this.fetchImage();
+            this.fetchImage(unit_id);
             this.fetchSchedule(unit_id, book_id);
             this.fetchRoadmapData(unit_id, book_id);
             this.fetchRabbit();
@@ -332,7 +332,7 @@
                 return null;
             }
         },
-        fetchImage() {
+        fetchImage(unit_id) {
             axios({
                 url: "/photo/photoUnitList.json",
                 method: "post",
@@ -340,7 +340,7 @@
                     "Content-Type": "application/json; charset=UTF-8",
                 },
                 data: {
-                    unitId: "UNIT_000000000000001",
+                    unitId: unit_id,
                     sclsId: "1"
                 }
             })
Add a comment
List