fix(aihr): hide demo records during initial load
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user