docs: 将"域名"统一修改为"站点"

更新文档和前端界面中的术语,将"按域名统计"改为"按站点统计",使术语更准确。
同时修复默认站点ID的处理逻辑,并添加缺失的统计API路由。
This commit is contained in:
anghunk
2026-02-09 15:51:59 +08:00
parent 3d2f1b0620
commit fea594af0d
4 changed files with 6 additions and 5 deletions

View File

@@ -217,11 +217,11 @@ function cycleTheme() {
type SiteOption = { label: string; value: string };
const siteOptions = ref<SiteOption[]>([]);
const defaultSiteId = "";
const defaultSiteId = "default";
function getSiteLabel(value: string) {
if (!value) {
return "默认站点 (Default)";
if (!value || value === "default") {
return "默认站点";
}
return value;
}

View File

@@ -74,7 +74,7 @@
<div class="card">
<div class="card-title-row">
<h3 class="card-title">域名统计</h3>
<h3 class="card-title">站点统计</h3>
</div>
<div v-if="statsLoading" class="page-hint">加载中...</div>
<div v-else-if="statsError" class="page-error">{{ statsError }}</div>