chore: 去除console.log输出
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m4s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m4s
This commit is contained in:
@ -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>
|
||||
|
||||
@ -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 =>
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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 = [
|
||||
|
||||
@ -102,10 +102,6 @@
|
||||
}
|
||||
);
|
||||
|
||||
watch(documents, (value) => {
|
||||
console.log(value);
|
||||
});
|
||||
|
||||
watch(error, (value) => {
|
||||
if (value) {
|
||||
console.error('数据获取失败: ', value);
|
||||
|
||||
@ -103,10 +103,6 @@
|
||||
}
|
||||
);
|
||||
|
||||
watch(data, (newVal) => {
|
||||
console.log('useAsyncData updated:', newVal);
|
||||
});
|
||||
|
||||
watch(error, (value) => {
|
||||
if (value) {
|
||||
console.error('数据获取失败: ', value);
|
||||
|
||||
Reference in New Issue
Block a user