refactor: 为Server端的Mapper添加空值处理与类型控制逻辑 #95
@ -53,8 +53,8 @@
|
|||||||
|
|
||||||
// SEO
|
// SEO
|
||||||
usePageSeo({
|
usePageSeo({
|
||||||
title: product.value.name || $t('page-title.products'),
|
title: product.value?.name || $t('page-title.products'),
|
||||||
description: product.value.summary || '',
|
description: product.value?.summary || '',
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -44,8 +44,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
usePageSeo({
|
usePageSeo({
|
||||||
title: solution.value.title || $t('page-title.solutions'),
|
title: solution.value?.title || $t('page-title.solutions'),
|
||||||
description: solution.value.summary || '',
|
description: solution.value?.summary || '',
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user