更新 NoDataFound 组件

This commit is contained in:
jxxghp
2025-06-27 23:26:43 +08:00
parent 1b32a3e8cd
commit d754c3dae3
7 changed files with 18 additions and 170 deletions

View File

@@ -9,7 +9,7 @@ const { t } = useI18n()
<template>
<NoDataFound error-code="404" :error-title="t('notFound.title')" :error-description="t('notFound.description')">
<template #button>
<VBtn to="/" class="mt-10">
<VBtn to="/" class="mt-10" prepend-icon="mdi-home">
{{ t('notFound.backButton') }}
</VBtn>
</template>

View File

@@ -276,7 +276,9 @@ onUnmounted(() => {
<!-- 无数据显示 -->
<div v-else-if="isRefreshed && !isViewChanging" class="d-flex flex-column align-center justify-center py-8">
<NoDataFound :errorTitle="errorTitle" :errorDescription="errorDescription" />
<VBtn class="mt-4" color="primary" prepend-icon="mdi-magnify" to="/">{{ t('resource.backToHome') }}</VBtn>
<VBtn rounded="pill" class="mt-4" color="primary" prepend-icon="mdi-home" to="/">
{{ t('resource.backToHome') }}
</VBtn>
</div>
<!-- 初始加载状态 -->