diff --git a/src/apis/listing.js b/src/apis/listing.js index 7d44f78..fe906ad 100644 --- a/src/apis/listing.js +++ b/src/apis/listing.js @@ -44,7 +44,6 @@ export async function fetchListingById(id) { } } -// apis/listing.js 파일의 createListing 함수 export async function createListing(listingData, images) { try { const formData = new FormData() @@ -88,10 +87,13 @@ export async function createListing(listingData, images) { } } -export async function updateListing(id, updatedData) { +// 수정된 updateListing 함수: createListing과 유사한 방식으로 FormData를 사용 +export async function updateListing(id, formData) { try { - const response = await api.put(`${API_BASE_URL}/${id}`, updatedData, { - headers: { 'Content-Type': 'application/json' }, + const response = await api.put(`${API_BASE_URL}/${id}`, formData, { + headers: { + 'Content-Type': 'multipart/form-data', + }, }) return response.data.data } catch (error) { diff --git a/src/assets/icons/PetA.vue b/src/assets/icons/PetA.vue new file mode 100644 index 0000000..8066c9a --- /dev/null +++ b/src/assets/icons/PetA.vue @@ -0,0 +1,29 @@ + + + diff --git a/src/components/homes/homecreate/Step1BasicInfo.vue b/src/components/homes/homecreate/Step1BasicInfo.vue index d18919c..a445a2e 100644 --- a/src/components/homes/homecreate/Step1BasicInfo.vue +++ b/src/components/homes/homecreate/Step1BasicInfo.vue @@ -1,69 +1,3 @@ - - + + diff --git a/src/components/homes/homecreate/Step2PriceInfo.vue b/src/components/homes/homecreate/Step2PriceInfo.vue index cd9bf52..a0d4f64 100644 --- a/src/components/homes/homecreate/Step2PriceInfo.vue +++ b/src/components/homes/homecreate/Step2PriceInfo.vue @@ -42,7 +42,7 @@

관리비 포함 항목

-
+
만원

관리비 포함 항목

-
+
-
+

상세 정보

전용면적과 건물 정보를 입력해주세요.

-
+
- 제곱미터 +
@@ -33,22 +33,25 @@ @input="handleChange('supplyArea', $event.target.valueAsNumber)" placeholder="0" /> - 제곱미터 +
-
+
- - + +
+ + +
@@ -63,7 +66,7 @@
-
+
-
+
- +
+ + +
- +
+ + +
@@ -145,7 +154,7 @@
방향 -
+
+
- - 업로드된 이미지 + class="relative w-24 h-24 rounded overflow-hidden border border-gray-300 shadow-sm" + > + 업로드된 이미지 + +
-
- - -
- - - -
- + diff --git a/src/components/homes/homeupdate/PriceInfoForm.vue b/src/components/homes/homeupdate/PriceInfoForm.vue index 7b4072f..627c707 100644 --- a/src/components/homes/homeupdate/PriceInfoForm.vue +++ b/src/components/homes/homeupdate/PriceInfoForm.vue @@ -1,92 +1,194 @@ diff --git a/src/components/homes/homeupdate/RoomInfoForm.vue b/src/components/homes/homeupdate/RoomInfoForm.vue index 8108576..f9c2fd9 100644 --- a/src/components/homes/homeupdate/RoomInfoForm.vue +++ b/src/components/homes/homeupdate/RoomInfoForm.vue @@ -1,94 +1,205 @@ + + diff --git a/src/pages/chat/ChatPage.vue b/src/pages/chat/ChatPage.vue index ef2e4e4..80bffb6 100644 --- a/src/pages/chat/ChatPage.vue +++ b/src/pages/chat/ChatPage.vue @@ -1,3 +1,4 @@ +tjt