fix(aihr): hide demo records during initial load

This commit is contained in:
2026-07-14 12:42:48 +08:00
parent 169272e37d
commit d31a09a846
5 changed files with 23 additions and 8 deletions
+3 -3
View File
@@ -118,7 +118,7 @@
<el-icon><Tickets /></el-icon>
<h2>最近案例</h2>
</div>
<el-table :data="records" size="small" class="record-table">
<el-table v-loading="recordsLoading" :data="records" size="small" class="record-table">
<el-table-column prop="title" label="标题" min-width="180" />
<el-table-column prop="type" label="类型" width="120" />
<el-table-column prop="status" label="状态" width="120" />
@@ -188,7 +188,7 @@ const apiSummary = ref<CaseSummaryItem[]>([]);
const apiTags = ref<CaseTag[]>([]);
const apiRecord = ref<CaseRecord | null>(null);
const apiSampleHint = ref('');
const recordsLoading = ref(false);
const recordsLoading = ref(true);
const recordsFallback = ref(false);
const detailVisible = ref(false);
const caseDetail = ref<CaseDetailResponse | null>(null);
@@ -279,7 +279,7 @@ const baseRecords = [
}
];
const records = ref([...baseRecords]);
const records = ref<CaseRecord[]>([]);
async function loadCaseRecords() {
recordsLoading.value = true;