fix: 统一管理后台 401 与加载失败处理

This commit is contained in:
Nixevol
2026-09-30 16:22:48 +08:00
parent 1cb562fb71
commit ed788fbb74
17 changed files with 473 additions and 47 deletions
+19
View File
@@ -0,0 +1,19 @@
<script setup lang="ts">
import { NButton, NResult } from "naive-ui";
defineProps<{
description?: string;
}>();
const emit = defineEmits<{
retry: [];
}>();
</script>
<template>
<n-result status="error" title="加载失败" :description="description || '无法加载页面数据'">
<template #footer>
<n-button type="primary" data-testid="load-retry" @click="emit('retry')">重试</n-button>
</template>
</n-result>
</template>