-
+
+
+
+
+
첨부파일: {{ fileCount }} / 5개
+
{{ fileError }}
+
+
+ -
+ {{ file.name }}
+
+
+
+
-
+
@@ -48,95 +69,96 @@
diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue
index 442114a..d32b3e6 100644
--- a/src/views/board/BoardView.vue
+++ b/src/views/board/BoardView.vue
@@ -229,7 +229,7 @@
const data = response.data.data;
profileName.value = data.author || '익명';
-
+ console.log(data.author);
authorId.value = data.authorId;
boardTitle.value = data.title || '제목 없음';
boardContent.value = data.content || '';
@@ -569,7 +569,7 @@
try {
const response = await axios.post(`board/${currentBoardId.value}/password`, {
LOCBRDPWD: password.value,
- LOCBRDSEQ: 288,
+ LOCBRDSEQ: currentBoardId.value,
});
if (response.data.code === 200 && response.data.data === true) {
@@ -586,17 +586,18 @@
passwordAlert.value = '비밀번호가 일치하지 않습니다.';
}
} catch (error) {
- if (error.response) {
- if (error.response.status === 401) {
- passwordAlert.value = '비밀번호가 일치하지 않습니다.';
- } else {
- passwordAlert.value = error.response.data?.message || '서버 오류가 발생했습니다.';
- }
- } else if (error.request) {
- passwordAlert.value = '네트워크 오류가 발생했습니다. 다시 시도해주세요.';
- } else {
- passwordAlert.value = '요청 중 알 수 없는 오류가 발생했습니다.';
- }
+ if (error.reponse && error.reponse.status === 401) passwordAlert.value = '비밀번호가 일치하지 않습니다.';
+ // if (error.response) {
+ // if (error.response.status === 401) {
+ // passwordAlert.value = '비밀번호가 일치하지 않습니다.';
+ // } else {
+ // passwordAlert.value = error.response.data?.message || '서버 오류가 발생했습니다.';
+ // }
+ // } else if (error.request) {
+ // passwordAlert.value = '네트워크 오류가 발생했습니다. 다시 시도해주세요.';
+ // } else {
+ // passwordAlert.value = '요청 중 알 수 없는 오류가 발생했습니다.';
+ // }
}
};