From 3d2f1b06209001882b67ca34b59b79d060114c0a Mon Sep 17 00:00:00 2001 From: anghunk Date: Mon, 9 Feb 2026 15:44:54 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3=E5=B9=B6=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E4=B8=BA=E7=AB=99=E7=82=B9=E5=88=97=E8=A1=A8=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除独立的 `/admin/stats/domains` 接口及相关文档 - 将原 `fetchDomainList` 重命名为 `fetchSiteList`,统一站点获取逻辑 - 优化后台界面中的站点显示,为空站点显示“默认站点 (Default)” - 移除设置页面中的“站点管理”选项卡,简化后台功能结构 - 保持 `/admin/stats/sites` 接口功能不变,作为统一的站点数据源 --- cwd-admin/src/views/LayoutView/index.vue | 38 +++++++++----- .../SettingsView/components/SiteManager.vue | 19 ++++--- cwd-admin/src/views/SettingsView/index.vue | 32 ++---------- cwd-api/src/api/admin/getDomains.ts | 19 +++---- cwd-api/src/index.ts | 3 +- docs/api/admin.md | 1 - docs/api/admin/stats.md | 49 +------------------ 7 files changed, 55 insertions(+), 106 deletions(-) diff --git a/cwd-admin/src/views/LayoutView/index.vue b/cwd-admin/src/views/LayoutView/index.vue index 71a3ce0..879da16 100644 --- a/cwd-admin/src/views/LayoutView/index.vue +++ b/cwd-admin/src/views/LayoutView/index.vue @@ -13,9 +13,13 @@
@@ -71,9 +75,13 @@ >
@@ -173,7 +181,7 @@