From f25ad7ffed4c7e8956f62212bf38ec4a9fe9f1fe Mon Sep 17 00:00:00 2001 From: khj0414 Date: Thu, 20 Mar 2025 10:11:13 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EC=B9=B4=ED=85=8C=EA=B3=A0=EB=A6=AC?= =?UTF-8?q?=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/category/CategoryBtn.vue | 33 ++++++++++++------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/src/components/category/CategoryBtn.vue b/src/components/category/CategoryBtn.vue index 8ed7d8d..57b8a47 100644 --- a/src/components/category/CategoryBtn.vue +++ b/src/components/category/CategoryBtn.vue @@ -5,35 +5,33 @@ type="button" class="btn" :class="{ - 'btn-outline-primary': selectedCategory !== 'all', - 'btn-primary': selectedCategory === 'all' + 'btn-outline-primary': selectedCategory !== 'all', + 'btn-primary': selectedCategory === 'all' }" @click="selectCategory('all')" > - All + All
  • - + @click="selectCategory(category.value)" + > + {{ category.label }} +
  • - From d78fab2143907566dd3a4547190d336704f6dd94 Mon Sep 17 00:00:00 2001 From: khj0414 Date: Thu, 20 Mar 2025 10:16:05 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=EC=9A=A9=EC=96=B4=EC=A7=91=EC=88=98?= =?UTF-8?q?=EC=A0=95=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/wordDict/DictCard.vue | 11 ++--------- src/components/wordDict/DictWrite.vue | 28 ++++++++++++++------------- src/views/wordDict/wordDict.vue | 8 +++++--- 3 files changed, 22 insertions(+), 25 deletions(-) diff --git a/src/components/wordDict/DictCard.vue b/src/components/wordDict/DictCard.vue index 6b19f79..d706900 100644 --- a/src/components/wordDict/DictCard.vue +++ b/src/components/wordDict/DictCard.vue @@ -9,16 +9,9 @@ :formValue="item.WRDDICCAT" :titleValue="item.WRDDICTTL" :contentValue="item.WRDDICCON" - :isDisabled="userStore.user.role !== 'ROLE_ADMIN'" + :isDisabled="true" />
    -
    {{ item.category }} @@ -129,7 +122,7 @@ const editWord = (data) => { if (writeButton.value) { writeButton.value.resetButton(); } - emit('refreshWordList'); + emit('refreshWordList',data.category); } else { console.warn('⚠️ 서버 응답이 예상과 다릅니다:', res.data); toastStore.onToast('용어 수정이 정상적으로 처리되지 않았습니다.', 'e'); diff --git a/src/components/wordDict/DictWrite.vue b/src/components/wordDict/DictWrite.vue index af8dd95..f558915 100644 --- a/src/components/wordDict/DictWrite.vue +++ b/src/components/wordDict/DictWrite.vue @@ -1,6 +1,7 @@