fix: 统一管理后台 401 与加载失败处理
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user