Skip to content

Commit

Permalink
feat: add home button
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaowangxiaowang256256 committed Mar 5, 2024
1 parent 75b580d commit cb50cf1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/app-header.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<script setup lang="ts">
import { ElIcon } from 'element-plus'
import { HomeFilled } from '@element-plus/icons-vue'
const isDark = useDark()
const toggleDark = useToggle(isDark)
</script>
Expand Down Expand Up @@ -75,5 +78,11 @@ const toggleDark = useToggle(isDark)
text="black 2xl"
@click="toggleDark()"
/>

<router-link to="/">
<div absolute left-5 top-5 cursor-pointer text="black 2xl">
<el-icon color="var(--text-color)"><HomeFilled /></el-icon>
</div>
</router-link>
</header>
</template>

0 comments on commit cb50cf1

Please sign in to comment.