refactor(components): 优化动画组件代码结构并移除冗余样式

style(pages): 使用实用类替换内联样式
refactor(composables): 简化页面标题模板逻辑
docs(components): 添加详细注释说明动画逻辑
This commit is contained in:
2026-04-27 02:28:49 +08:00
parent 044042fe7e
commit 76e7b4b817
5 changed files with 98 additions and 276 deletions
+2 -2
View File
@@ -10,10 +10,10 @@ const siteImage = '/og-image.png'
// 配置全局 Title 模板
useHead({
titleTemplate: computed(() => (titleChunk?: string) => {
titleTemplate: (titleChunk?: string) => {
const siteName = t('app.name')
return titleChunk ? `${titleChunk} - ${siteName}` : siteName
})
}
})
// 配置全局基础 SEO 和 Meta (响应式支持国际化)