jichoi / lms_front star
이은진 이은진 2024-08-14
240814 이은진 단어장4 수정
@9787b0677ac723a9151b268f7dcd3e794fdd9989
client/views/pages/main/Chapter/Chapter2_9.vue
--- client/views/pages/main/Chapter/Chapter2_9.vue
+++ client/views/pages/main/Chapter/Chapter2_9.vue
@@ -12,7 +12,13 @@
     <div class="flex justify-between align-center">
       <div class="pre-btn" @click="goToPage('Chapter2_2')"><img src="../../../../resources/img/left.png" alt=""></div>
       <div class="content title-box">
-        <p class="title mt25 title-bg">STEP 2 - 단어로 공부하는 영어</p>
+        <div style="display: flex; justify-content: space-between;">
+          <p class="title mt25 title-bg">STEP 2 - 단어로 공부하는 영어</p>
+          <button id="returnButton" @click="returnPage" style="margin: 4rem;">
+            <img src="../../../../resources/img/btn_return_50x50.png" alt="">
+            <p>되돌리기</p>
+          </button>
+        </div>
         <div class="flex align-center mb30">
           <p class="subtitle2 mr20">앗! 잉크가 쏟아졌어! 지우개로 잉크를 지워줘!</p>
         </div>
@@ -111,7 +117,7 @@
   </div>
 </template>
 
-  
+
 <script>
 export default {
   data() {
@@ -151,7 +157,10 @@
       }
 
       this.draggedElementId = null; // 드래그 상태 초기화
-    }
+    },
+    returnPage() {
+      window.location.reload();
+    },
   },
   mounted() {
     // 드래그 가능한 영역에 드래그 오버 및 드롭 이벤트를 추가합니다
@@ -176,6 +185,4 @@
 .ink {
   cursor: pointer;
 }
-
-
 </style>
(No newline at end of file)
Add a comment
List