jichoi / lms_front star
하석형 하석형 08-23
240823 박민혁 이미지, 파일 업로드 url 로컬에서 실 서버로 변경
@abdbc6a39d1974a9c01445deb2b8d722eda77b07
client/views/pages/main/AIDashboard.vue
--- client/views/pages/main/AIDashboard.vue
+++ client/views/pages/main/AIDashboard.vue
@@ -278,7 +278,7 @@
                     this.images = fileResults.map(file => {
                         if (file) {
                             return {
-                                url: "http://localhost:9080/" + `${file.fileRpath}`,
+                                url: "http://165.229.169.113:9080/" + `${file.fileRpath}`,
                                 fileId: file.fileId,
                                 fileNm: file.fileNm,
                                 // Add any other properties you need here
client/views/pages/main/Chapter/Chapter1_3.vue
--- client/views/pages/main/Chapter/Chapter1_3.vue
+++ client/views/pages/main/Chapter/Chapter1_3.vue
@@ -70,7 +70,7 @@
         },
         // 이미지 불러오기
         fetchImage(fileRpath) {
-            return "http://localhost:9080/" + fileRpath;
+            return "http://165.229.169.113:9080/" + fileRpath;
         },
     },
     watch: {},
client/views/pages/main/Dashboard.vue
--- client/views/pages/main/Dashboard.vue
+++ client/views/pages/main/Dashboard.vue
@@ -371,7 +371,7 @@
                             const result = fileResults[index];
                             if (result) {
                                 return {
-                                    url: "http://localhost:9080/" + `${result.fileRpath}`,
+                                    url: "http://165.229.169.113:9080/" + `${result.fileRpath}`,
                                     fileId: result.fileId,
                                     fileNm: result.fileNm,
                                     fileRegDate: result.regDt,
client/views/pages/main/PhotoBook.vue
--- client/views/pages/main/PhotoBook.vue
+++ client/views/pages/main/PhotoBook.vue
@@ -258,7 +258,7 @@
         });
     },
     fetchImage(fileRpath) {
-      return "http://localhost:9080/" + fileRpath;
+      return "http://165.229.169.113:9080/" + fileRpath;
     },
   },
   watch: {},
client/views/pages/main/PhotoEdit.vue
--- client/views/pages/main/PhotoEdit.vue
+++ client/views/pages/main/PhotoEdit.vue
@@ -81,7 +81,7 @@
       formData.append("files", file);
 
       try {
-        const response = await axios.post("http://localhost:9080/file/upload.json", formData, {
+        const response = await axios.post("http://165.229.169.113:9080/file/upload.json", formData, {
           headers: {
             "Content-Type": "multipart/form-data",
           },
client/views/pages/teacher/QuestionDetail.vue
--- client/views/pages/teacher/QuestionDetail.vue
+++ client/views/pages/teacher/QuestionDetail.vue
@@ -576,7 +576,7 @@
             }
 
             try {
-                const response = await axios.post("http://localhost:9080/file/upload.json", formData, {
+                const response = await axios.post("http://165.229.169.113:9080/file/upload.json", formData, {
                     headers: {
                         "Content-Type": "multipart/form-data",
                     },
client/views/pages/teacher/QuestionInsert.vue
--- client/views/pages/teacher/QuestionInsert.vue
+++ client/views/pages/teacher/QuestionInsert.vue
@@ -374,7 +374,7 @@
             }
 
             try {
-                const response = await axios.post("http://localhost:9080/file/upload.json", formData, {
+                const response = await axios.post("http://165.229.169.113:9080/file/upload.json", formData, {
                     headers: {
                         "Content-Type": "multipart/form-data",
                     },
client/views/pages/teacher/TextDetail.vue
--- client/views/pages/teacher/TextDetail.vue
+++ client/views/pages/teacher/TextDetail.vue
@@ -197,7 +197,7 @@
                 }
 
                 const fileUploadResponse = await axios.post(
-                    "http://localhost:9080/file/upload.json",
+                    "http://165.229.169.113:9080/file/upload.json",
                     formData,
                     {
                         headers: {
client/views/pages/teacher/TextInsert.vue
--- client/views/pages/teacher/TextInsert.vue
+++ client/views/pages/teacher/TextInsert.vue
@@ -138,7 +138,7 @@
                 }
 
                 const fileUploadResponse = await axios.post(
-                    "http://localhost:9080/file/upload.json",
+                    "http://165.229.169.113:9080/file/upload.json",
                     formData,
                     {
                         headers: {
client/views/pages/teacher/VocaDetail.vue
--- client/views/pages/teacher/VocaDetail.vue
+++ client/views/pages/teacher/VocaDetail.vue
@@ -349,7 +349,7 @@
             }
 
             try {
-                const response = await axios.post("http://localhost:9080/file/upload.json", formData, {
+                const response = await axios.post("http://165.229.169.113:9080/file/upload.json", formData, {
                     headers: {
                         "Content-Type": "multipart/form-data",
                     },
client/views/pages/teacher/VocaInsert.vue
--- client/views/pages/teacher/VocaInsert.vue
+++ client/views/pages/teacher/VocaInsert.vue
@@ -275,7 +275,7 @@
             }
 
             try {
-                const response = await axios.post("http://localhost:9080/file/upload.json", formData, {
+                const response = await axios.post("http://165.229.169.113:9080/file/upload.json", formData, {
                     headers: {
                         "Content-Type": "multipart/form-data",
                     },
client/views/pages/teacher/noticeInsert.vue
--- client/views/pages/teacher/noticeInsert.vue
+++ client/views/pages/teacher/noticeInsert.vue
@@ -128,7 +128,7 @@
           }
 
           const fileUploadResponse = await axios.post(
-            "http://localhost:9080/file/upload.json",
+            "http://165.229.169.113:9080/file/upload.json",
             formData,
             {
               headers: {
@@ -173,7 +173,7 @@
         }
 
         const fileUploadResponse = await axios.post(
-          "http://localhost:9080/file/upload.json",
+          "http://165.229.169.113:9080/file/upload.json",
           formData,
           {
             headers: {
Add a comment
List