From ee0b34dad09dad872e5a62fb70850fbcd7152872 Mon Sep 17 00:00:00 2001 From: khj0414 Date: Mon, 17 Feb 2025 14:56:01 +0900 Subject: [PATCH 1/6] =?UTF-8?q?qeditor=EC=88=98=EC=A0=95=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/editor/QEditor.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/editor/QEditor.vue b/src/components/editor/QEditor.vue index 84fee83..3ff77e9 100644 --- a/src/components/editor/QEditor.vue +++ b/src/components/editor/QEditor.vue @@ -46,7 +46,6 @@
-
내용을 확인해주세요.
@@ -64,6 +63,10 @@ const props = defineProps({ type: Boolean, default: false, }, + initialData: { + type: String, + default: () => null, + }, }); const editor = ref(null); // 에디터 DOM 참조 @@ -108,8 +111,14 @@ onMounted(() => { watch([font, fontSize], () => { quillInstance.format('font', font.value); quillInstance.format('size', fontSize.value); + }); + // 초기 데이터가 있을 경우, HTML 형식으로 삽입 + if (props.initialData) { + quillInstance.setContents(JSON.parse(props.initialData)); + } + // 이미지 업로드 기능 처리 let imageUrls = new Set(); // 업로드된 이미지 URL을 추적 quillInstance.getModule('toolbar').addHandler('image', () => { From 10d1aa4d8c2fe6548ce80f0bff29c4e3c61b3703 Mon Sep 17 00:00:00 2001 From: Dang Date: Tue, 18 Feb 2025 10:33:12 +0900 Subject: [PATCH 2/6] =?UTF-8?q?=EC=9A=A9=EC=96=B4=EC=A7=91=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/wordDict/DictCard.vue | 49 ++++++++++++++++++++++++--- src/components/wordDict/DictWrite.vue | 7 ++-- src/views/wordDict/wordDict.vue | 1 - 3 files changed, 50 insertions(+), 7 deletions(-) diff --git a/src/components/wordDict/DictCard.vue b/src/components/wordDict/DictCard.vue index 4d9b5da..8004a55 100644 --- a/src/components/wordDict/DictCard.vue +++ b/src/components/wordDict/DictCard.vue @@ -4,10 +4,12 @@ v-if="isWriteVisible" @close="isWriteVisible = false" :dataList="cateList" - @addCategory="addCategory" + @addCategory="addCategory" + @addWord="editWord" + :NumValue="item.WRDDICSEQ" :formValue="item.WRDDICCAT" - :titleValue="item.WRDDICTTL" - :contentValue="$common.contentToHtml(item.WRDDICCON)" + :titleValue="item.WRDDICTTL" + :contentValue="item.WRDDICCON" />
@@ -57,13 +59,16 @@ diff --git a/src/components/voteboard/voteCompleteUserList.vue b/src/components/voteboard/voteCompleteUserList.vue index e7d3203..d754513 100644 --- a/src/components/voteboard/voteCompleteUserList.vue +++ b/src/components/voteboard/voteCompleteUserList.vue @@ -1,11 +1,10 @@ diff --git a/src/components/modal/VacationModal.vue b/src/components/modal/VacationModal.vue index e1b705b..fd27de0 100644 --- a/src/components/modal/VacationModal.vue +++ b/src/components/modal/VacationModal.vue @@ -1,49 +1,41 @@ + - - const closeModal = () => { - emit("close"); - }; - - - +} + diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 2eb5e83..2559318 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -221,12 +221,12 @@ const handleUpdateReaction = async ({ boardId, commentId, isLike, isDislike }) = }; // 댓글 목록 조회 -const fetchComments = async (pageNum = 1) => { +const fetchComments = async (page = 1) => { try { const response = await axios.get(`board/${currentBoardId.value}/comments`, { params: { LOCBRDSEQ: currentBoardId.value, - pageNum: pageNum + page } }); console.log("목록 API 응답 데이터:", response.data);