登录注册体系的源码级硬切换

This commit is contained in:
kate522 committed 2026-08-23 20:30:01 +08:00
1 parent 73fcd4ed72
commit af52f9e94d
72 files changed
+1666 -6576

No files matched your search

+2 -28
View File
@@ -2,7 +2,7 @@
<div class="aksrt-page-container">
<PageHeader
title="健康检查"
desc="集中查看运行环境、数据库表、邮箱验证迁移和系统诊断状态。"
desc="集中查看运行环境、数据库表和系统诊断状态。"
>
<template #actions>
<n-space>
@@ -13,23 +13,6 @@
</PageHeader>
<n-spin :show="loading" style="width: 100%; min-height: 200px;">
<n-card class="aksrt-section-card">
<div class="aksrt-section-header">
<h3>邮箱验证状态</h3>
</div>
<n-space>
<n-tag round :type="emailHealth.feature_enabled ? 'success' : 'default'">
功能开关:{{ emailHealth.feature_enabled ? '已启用' : '未启用' }}
</n-tag>
<n-tag round :type="emailHealth.rest_blocking_active ? 'warning' : 'default'">
REST 阻断:{{ emailHealth.rest_blocking_active ? '已开启' : '仅记录/关闭' }}
</n-tag>
<n-tag round type="info">
待验证用户:{{ emailHealth.pending_users }}
</n-tag>
</n-space>
</n-card>
<div class="aksrt-health-grid">
<n-card v-for="check in checkItems" :key="check.key" class="aksrt-section-card">
<div class="aksrt-section-header">
@@ -55,11 +38,6 @@ const message = useMessage()
const loading = ref(true)
const healthData = ref({})
const emailHealth = ref({
feature_enabled: false,
pending_users: 0,
rest_blocking_active: false,
})
const checkItems = computed(() => {
return Object.entries(healthData.value || {}).map(([key, value]) => ({
@@ -86,12 +64,8 @@ function statusToTag(status) {
async function load() {
loading.value = true
try {
const [healthRes, emailRes] = await Promise.all([
api.getHealthCheck(),
api.getHealthEmailVerification(),
])
const healthRes = await api.getHealthCheck()
healthData.value = extractData(healthRes).checks || {}
emailHealth.value = extractData(emailRes)
} catch (error) {
message.error(error.message || '加载健康检查失败')
} finally {