Skip to content

Commit

Permalink
refactor: transfer set title to app
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Dec 28, 2023
1 parent e8cc5b4 commit 7be44a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ const siteConfig = useSiteConfig()
const colorMode = useColorMode()
colorMode.preference = siteConfig.theme || 'system'
useHead({
title: siteConfig.title,
})
</script>
4 changes: 0 additions & 4 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,4 @@

<script setup lang="ts">
const siteConfig = useSiteConfig()
useHead({
title: siteConfig.title,
})
</script>

0 comments on commit 7be44a1

Please sign in to comment.