jichoi / lms_front star
하석형 하석형 2024-08-23
240823 박민혁 절대경로 상대 경로로 수정
@d5bd5752515aad4cb8c8135adb80fedf54581532
client/views/pages/main/Chapter/Chapter2.vue
--- client/views/pages/main/Chapter/Chapter2.vue
+++ client/views/pages/main/Chapter/Chapter2.vue
@@ -38,7 +38,7 @@
               <article class="flex align-center">
                 <div class="imgGroup mr30">
                   <img
-                    :src= word.fileApath
+                    :src= word.fileRpath
                     data-num="1"
                     style="width: 200px"
                   />
@@ -103,16 +103,16 @@
 
         const wordList = response.data;
 
-        // 각 word 객체에 대해 fileApath를 받아오는 요청 처리
+        // 각 word 객체에 대해 fileRpath를 받아오는 요청 처리
         const requests = wordList.map(async (word) => {
           const fileResponse = await axios.post("/file/find.json", {
             file_mng_id: word.fileMngId,
           });
 
-          const fileApath = fileResponse.data.list.length > 0 ? fileResponse.data.list[0].fileApath : null;
-          console.log("각 단어의 fileApath: ", fileApath);
+          const fileRpath = fileResponse.data.list.length > 0 ? fileResponse.data.list[0].fileRpath : null;
+          console.log("각 단어의 fileRpath: ", fileRpath);
 
-          word.fileApath = "http://localhost:9080/" + fileApath; // fileApath 값을 해당 객체에 추가
+          word.fileRpath = "http://165.229.169.113:9080/" + fileRpath; // fileRpath 값을 해당 객체에 추가
         });
 
         // 모든 요청이 완료될 때까지 대기
client/views/pages/main/Chapter/Chapter2_3.vue
--- client/views/pages/main/Chapter/Chapter2_3.vue
+++ client/views/pages/main/Chapter/Chapter2_3.vue
@@ -216,20 +216,20 @@
                 this.wordList = response.data;
 
                 const requests = this.wordList.map(async (word, index) => {
-                    // fileApath를 받아오기 위한 요청
+                    // fileRpath를 받아오기 위한 요청
                     const fileResponse = await axios.post('/file/find.json', {
                         file_mng_id: word.fileMngId,
                     });
 
-                    // fileResponse.data.list에서 fileApath 값을 추출하여 imgSrc에 설정
-                    const fileApath = fileResponse.data.list.length > 0 ? fileResponse.data.list[0].fileApath : null;
-                    const imgSrc = fileApath ? `http://localhost:9080/${fileApath}` : '';
+                    // fileResponse.data.list에서 fileRpath 값을 추출하여 imgSrc에 설정
+                    const fileRpath = fileResponse.data.list.length > 0 ? fileResponse.data.list[0].fileRpath : null;
+                    const imgSrc = fileRpath ? `http://http://165.229.169.113:8081/${fileRpath}` : '';
 
                     return {
                         imgSrc1: `client/resources/img/img53_${6 + index}_35s.png`,
                         imgSrc2: `client/resources/img/img53_${1 + index}_35s.png`,
                         con: {
-                            imgSrc, // fileApath를 imgSrc에 설정
+                            imgSrc, // fileRpath를 imgSrc에 설정
                             titleEm: word.wdNm.charAt(0), // 단어의 첫 글자
                             title: word.wdNm.slice(1), // 단어의 나머지 부분
                             boxText: '명',
Add a comment
List