fix: 补全SEO&调整列表样式 #67

Manually merged
remilia merged 3 commits from chore/misc-fixes into master 2025-11-08 10:15:07 +08:00
8 changed files with 6 additions and 27 deletions

View File

@ -40,6 +40,7 @@
<style scoped>
.spec-collapse ::v-deep(.el-collapse-item__header) {
font-size: 1rem;
font-weight: 600;
padding: 1rem;
}
</style>

View File

@ -24,11 +24,9 @@
onMounted(async () => {
await nextTick();
if (!safeHtml.value) return;
console.log(safeHtml.value);
// 查找所有 table
const tables = container.value.querySelectorAll('table');
console.log(tables);
tables.forEach((table) => {
// 1. 提取表头
const headers = Array.from(table.querySelectorAll('thead th')).map(
@ -55,8 +53,6 @@
app.mount(mountPoint);
});
});
// console.log('Rendered HTML:', safeHtml.value);
</script>
<style>

View File

@ -86,8 +86,6 @@ export const useMeilisearch = () => {
(index) => index + (searchLocale ? `_${searchLocale}` : '')
);
console.log(indexesWithLocale);
const requests = indexesWithLocale.map(async (indexUid) => {
const response = await client.index(indexUid).search<T>(trimmedQuery, {
limit: params.limit ?? 10,
@ -101,8 +99,6 @@ export const useMeilisearch = () => {
const settled = await Promise.allSettled(requests);
console.log('Meilisearch settled results:', settled);
settled
.filter(
(result): result is PromiseRejectedResult =>

View File

@ -19,10 +19,6 @@ export function toHomepageView(raw: Homepage): HomepageView {
const cover = isObject<DirectusFile>(item.cover)
? item.cover.id
: item.cover;
console.log(
'Has empty array in product translations:',
item.translations.length === 0
);
const trans = item.translations?.[0] ?? { name: '', summary: '' };
return {
id: item.id,

View File

@ -41,6 +41,11 @@
console.error('数据获取失败: ', value);
}
});
const pageTitle = computed(() => $t('page-title.about-us'));
useHead({
title: pageTitle,
});
</script>
<style scoped>

View File

@ -69,7 +69,6 @@
if (!groups[typeKey]) groups[typeKey] = [];
groups[typeKey]?.push(prod);
}
console.log(groups);
return groups;
});
@ -88,12 +87,6 @@
}
});
watch(pending, (value) => {
if (!value) {
console.log('AsyncData: ', data.value);
}
});
onMounted(async () => {
if (groupedProducts.value) {
activeNames.value = [

View File

@ -102,10 +102,6 @@
}
);
watch(documents, (value) => {
console.log(value);
});
watch(error, (value) => {
if (value) {
console.error('数据获取失败: ', value);

View File

@ -103,10 +103,6 @@
}
);
watch(data, (newVal) => {
console.log('useAsyncData updated:', newVal);
});
watch(error, (value) => {
if (value) {
console.error('数据获取失败: ', value);