jichoi / lms_front star
박민혁 박민혁 2024-08-29
240829 박민혁 AI 학습 보드 이동 수정
@79eda3c0db9df3b95f75fe2b976080aef33e1c54
client/views/pages/main/MyPlan.vue
--- client/views/pages/main/MyPlan.vue
+++ client/views/pages/main/MyPlan.vue
@@ -50,7 +50,7 @@
             <div class="wrap mt30">
                 <p class="title1 mb20">AI 맞춤형 학습 코스는 어떨까요?</p>
                 <div class="imgGroup flex justify-between">
-                    <div class="text-lf aiClick" v-for="(ai_learning, index) in aiLearningList" :key="index" @click="goToPage('Dashboard', aiLearningList[index].unit_id)">
+                    <div class="text-lf aiClick" v-for="(ai_learning, index) in aiLearningList" :key="index" @click="goToPage2('AIDashboard', aiLearningList[index].unit_id)">
                         <img src="../../../resources/img/img215_22s.png" alt="" />
                         <p class="title2 mt10">추천 학습 단원</p>
                     </div>
@@ -168,8 +168,11 @@
                     alert("학습 계획을 업데이트하는 중 오류가 발생했습니다.");
                 });
         },
-        goToPage2(page) {
-            this.$router.push({ name: page });
+        goToPage2(page, unit_id) {
+            this.$router.push({ name: page, query: {
+                unit_id: unit_id,
+              },
+            });
         },
         showConfirm(type) {
             let message = "";
Add a comment
List