fix: 补全SEO&调整列表样式
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m8s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m8s
- chore: 去除console.log输出 - fix: 补全SEO - fix: 调整SpecTable表头样式
This commit is contained in:
@ -40,6 +40,7 @@
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.spec-collapse ::v-deep(.el-collapse-item__header) {
|
.spec-collapse ::v-deep(.el-collapse-item__header) {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
font-weight: 600;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -24,11 +24,9 @@
|
|||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await nextTick();
|
await nextTick();
|
||||||
if (!safeHtml.value) return;
|
if (!safeHtml.value) return;
|
||||||
console.log(safeHtml.value);
|
|
||||||
|
|
||||||
// 查找所有 table
|
// 查找所有 table
|
||||||
const tables = container.value.querySelectorAll('table');
|
const tables = container.value.querySelectorAll('table');
|
||||||
console.log(tables);
|
|
||||||
tables.forEach((table) => {
|
tables.forEach((table) => {
|
||||||
// 1. 提取表头
|
// 1. 提取表头
|
||||||
const headers = Array.from(table.querySelectorAll('thead th')).map(
|
const headers = Array.from(table.querySelectorAll('thead th')).map(
|
||||||
@ -55,8 +53,6 @@
|
|||||||
app.mount(mountPoint);
|
app.mount(mountPoint);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// console.log('Rendered HTML:', safeHtml.value);
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
@ -86,8 +86,6 @@ export const useMeilisearch = () => {
|
|||||||
(index) => index + (searchLocale ? `_${searchLocale}` : '')
|
(index) => index + (searchLocale ? `_${searchLocale}` : '')
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log(indexesWithLocale);
|
|
||||||
|
|
||||||
const requests = indexesWithLocale.map(async (indexUid) => {
|
const requests = indexesWithLocale.map(async (indexUid) => {
|
||||||
const response = await client.index(indexUid).search<T>(trimmedQuery, {
|
const response = await client.index(indexUid).search<T>(trimmedQuery, {
|
||||||
limit: params.limit ?? 10,
|
limit: params.limit ?? 10,
|
||||||
@ -101,8 +99,6 @@ export const useMeilisearch = () => {
|
|||||||
|
|
||||||
const settled = await Promise.allSettled(requests);
|
const settled = await Promise.allSettled(requests);
|
||||||
|
|
||||||
console.log('Meilisearch settled results:', settled);
|
|
||||||
|
|
||||||
settled
|
settled
|
||||||
.filter(
|
.filter(
|
||||||
(result): result is PromiseRejectedResult =>
|
(result): result is PromiseRejectedResult =>
|
||||||
|
|||||||
@ -19,10 +19,6 @@ export function toHomepageView(raw: Homepage): HomepageView {
|
|||||||
const cover = isObject<DirectusFile>(item.cover)
|
const cover = isObject<DirectusFile>(item.cover)
|
||||||
? item.cover.id
|
? item.cover.id
|
||||||
: item.cover;
|
: item.cover;
|
||||||
console.log(
|
|
||||||
'Has empty array in product translations:',
|
|
||||||
item.translations.length === 0
|
|
||||||
);
|
|
||||||
const trans = item.translations?.[0] ?? { name: '', summary: '' };
|
const trans = item.translations?.[0] ?? { name: '', summary: '' };
|
||||||
return {
|
return {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
|
|||||||
@ -41,6 +41,11 @@
|
|||||||
console.error('数据获取失败: ', value);
|
console.error('数据获取失败: ', value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const pageTitle = computed(() => $t('page-title.about-us'));
|
||||||
|
useHead({
|
||||||
|
title: pageTitle,
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@ -69,7 +69,6 @@
|
|||||||
if (!groups[typeKey]) groups[typeKey] = [];
|
if (!groups[typeKey]) groups[typeKey] = [];
|
||||||
groups[typeKey]?.push(prod);
|
groups[typeKey]?.push(prod);
|
||||||
}
|
}
|
||||||
console.log(groups);
|
|
||||||
return groups;
|
return groups;
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -88,12 +87,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(pending, (value) => {
|
|
||||||
if (!value) {
|
|
||||||
console.log('AsyncData: ', data.value);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
if (groupedProducts.value) {
|
if (groupedProducts.value) {
|
||||||
activeNames.value = [
|
activeNames.value = [
|
||||||
|
|||||||
@ -102,10 +102,6 @@
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
watch(documents, (value) => {
|
|
||||||
console.log(value);
|
|
||||||
});
|
|
||||||
|
|
||||||
watch(error, (value) => {
|
watch(error, (value) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
console.error('数据获取失败: ', value);
|
console.error('数据获取失败: ', value);
|
||||||
|
|||||||
@ -103,10 +103,6 @@
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
watch(data, (newVal) => {
|
|
||||||
console.log('useAsyncData updated:', newVal);
|
|
||||||
});
|
|
||||||
|
|
||||||
watch(error, (value) => {
|
watch(error, (value) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
console.error('数据获取失败: ', value);
|
console.error('数据获取失败: ', value);
|
||||||
|
|||||||
Reference in New Issue
Block a user