로딩 수정
This commit is contained in:
parent
ce1011b96f
commit
cc8e347aa9
@ -26,8 +26,6 @@
|
||||
</div>
|
||||
<!-- 용어 리스트 -->
|
||||
<div>
|
||||
<!-- 로딩 중일 때 -->
|
||||
<LoadingSpinner v-if="loading"/>
|
||||
<!-- 에러 메시지 -->
|
||||
<div v-if="error" class="error">{{ error }}</div>
|
||||
<!-- 단어 목록 -->
|
||||
@ -78,7 +76,6 @@
|
||||
const toastStore = useToastStore();
|
||||
|
||||
// 공통
|
||||
const loading = ref(false);
|
||||
const error = ref('');
|
||||
|
||||
// 용어집
|
||||
@ -134,12 +131,10 @@
|
||||
wordList.value = res.data.data.data;
|
||||
// 총 개수 저장
|
||||
total.value = res.data.data.total;
|
||||
loading.value = false;
|
||||
})
|
||||
.catch(err => {
|
||||
console.error('데이터 로드 오류:', err);
|
||||
error.value = '데이터를 가져오는 중 문제가 발생했습니다.';
|
||||
loading.value = false;
|
||||
});
|
||||
};
|
||||
//정렬 목록
|
||||
|
||||
Loading…
Reference in New Issue
Block a user