From 3cb3281a8663a72d077aee34ebb2b49dd807b552 Mon Sep 17 00:00:00 2001 From: yoon Date: Mon, 10 Feb 2025 16:10:28 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B9=B4=ED=85=8C=EA=B3=A0=EB=A6=AC=20?= =?UTF-8?q?=EB=AA=A9=EB=A1=9D=20=EB=B6=88=EB=9F=AC=EC=98=A4=EA=B8=B0=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wordDict/wordDict.vue | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/views/wordDict/wordDict.vue b/src/views/wordDict/wordDict.vue index 3c494aa..11cb320 100644 --- a/src/views/wordDict/wordDict.vue +++ b/src/views/wordDict/wordDict.vue @@ -69,6 +69,7 @@ import DictCard from '@/components/wordDict/DictCard.vue'; import DictWrite from '@/components/wordDict/DictWrite.vue'; import DictAlphabetFilter from '@/components/wordDict/DictAlphabetFilter.vue'; + import commonApi from '@/common/commonApi' import { useToastStore } from '@s/toastStore'; const { appContext } = getCurrentInstance(); @@ -87,7 +88,7 @@ const total = ref(0); // 카테고리 - const cateList = ref([]); + const { cateList } = commonApi(); const selectedCategory = ref(''); //선택된 알파벳 @@ -102,7 +103,6 @@ // 데이터 로드 onMounted(() => { getwordList(); - getwordCategory(); }); //용어 목록 @@ -128,17 +128,7 @@ loading.value = false; }); }; - // 카테고리 목록 - const getwordCategory = () => { - axios.get('worddict/getWordCategory') - .then(res => { - cateList.value = res.data.data; - }) - .catch(err => { - console.error('카테고리 로드 오류:', err); - error.value = '카테고리 데이터를 가져오는 중 문제가 발생했습니다.'; - }); - }; + // 검색 const search = (e) => { searchText.value = e.trim();