
--- client/views/pages/main/Chapter/Chapter2.vue
+++ client/views/pages/main/Chapter/Chapter2.vue
... | ... | @@ -38,7 +38,7 @@ |
38 | 38 |
<article class="flex align-center"> |
39 | 39 |
<div class="imgGroup mr30"> |
40 | 40 |
<img |
41 |
- :src= word.fileApath |
|
41 |
+ :src= word.fileRpath |
|
42 | 42 |
data-num="1" |
43 | 43 |
style="width: 200px" |
44 | 44 |
/> |
... | ... | @@ -103,16 +103,16 @@ |
103 | 103 |
|
104 | 104 |
const wordList = response.data; |
105 | 105 |
|
106 |
- // 각 word 객체에 대해 fileApath를 받아오는 요청 처리 |
|
106 |
+ // 각 word 객체에 대해 fileRpath를 받아오는 요청 처리 |
|
107 | 107 |
const requests = wordList.map(async (word) => { |
108 | 108 |
const fileResponse = await axios.post("/file/find.json", { |
109 | 109 |
file_mng_id: word.fileMngId, |
110 | 110 |
}); |
111 | 111 |
|
112 |
- const fileApath = fileResponse.data.list.length > 0 ? fileResponse.data.list[0].fileApath : null; |
|
113 |
- console.log("각 단어의 fileApath: ", fileApath); |
|
112 |
+ const fileRpath = fileResponse.data.list.length > 0 ? fileResponse.data.list[0].fileRpath : null; |
|
113 |
+ console.log("각 단어의 fileRpath: ", fileRpath); |
|
114 | 114 |
|
115 |
- word.fileApath = "http://localhost:9080/" + fileApath; // fileApath 값을 해당 객체에 추가 |
|
115 |
+ word.fileRpath = "http://165.229.169.113:9080/" + fileRpath; // fileRpath 값을 해당 객체에 추가 |
|
116 | 116 |
}); |
117 | 117 |
|
118 | 118 |
// 모든 요청이 완료될 때까지 대기 |
--- client/views/pages/main/Chapter/Chapter2_3.vue
+++ client/views/pages/main/Chapter/Chapter2_3.vue
... | ... | @@ -216,20 +216,20 @@ |
216 | 216 |
this.wordList = response.data; |
217 | 217 |
|
218 | 218 |
const requests = this.wordList.map(async (word, index) => { |
219 |
- // fileApath를 받아오기 위한 요청 |
|
219 |
+ // fileRpath를 받아오기 위한 요청 |
|
220 | 220 |
const fileResponse = await axios.post('/file/find.json', { |
221 | 221 |
file_mng_id: word.fileMngId, |
222 | 222 |
}); |
223 | 223 |
|
224 |
- // fileResponse.data.list에서 fileApath 값을 추출하여 imgSrc에 설정 |
|
225 |
- const fileApath = fileResponse.data.list.length > 0 ? fileResponse.data.list[0].fileApath : null; |
|
226 |
- const imgSrc = fileApath ? `http://localhost:9080/${fileApath}` : ''; |
|
224 |
+ // fileResponse.data.list에서 fileRpath 값을 추출하여 imgSrc에 설정 |
|
225 |
+ const fileRpath = fileResponse.data.list.length > 0 ? fileResponse.data.list[0].fileRpath : null; |
|
226 |
+ const imgSrc = fileRpath ? `http://http://165.229.169.113:8081/${fileRpath}` : ''; |
|
227 | 227 |
|
228 | 228 |
return { |
229 | 229 |
imgSrc1: `client/resources/img/img53_${6 + index}_35s.png`, |
230 | 230 |
imgSrc2: `client/resources/img/img53_${1 + index}_35s.png`, |
231 | 231 |
con: { |
232 |
- imgSrc, // fileApath를 imgSrc에 설정 |
|
232 |
+ imgSrc, // fileRpath를 imgSrc에 설정 |
|
233 | 233 |
titleEm: word.wdNm.charAt(0), // 단어의 첫 글자 |
234 | 234 |
title: word.wdNm.slice(1), // 단어의 나머지 부분 |
235 | 235 |
boxText: '명', |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?