Skip to content

Commit 4bf2bba

Browse files
committed
修复了favicon显示问题
1 parent 929f16f commit 4bf2bba

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

app/layouts/Default.vue

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,6 @@
2626

2727
<script setup lang="ts">
2828
const [drawerStatus, toggleDrawer] = useToggle(false)
29-
30-
useHead({
31-
htmlAttrs: {
32-
lang: 'zh-CN',
33-
},
34-
link: [
35-
{
36-
rel: 'icon',
37-
type: 'image/png',
38-
href: '/favicon.png',
39-
},
40-
],
41-
})
4229
</script>
4330

4431
<style lang="less" scoped>

nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default defineNuxtConfig({
6363
head: {
6464
htmlAttrs: { lang: 'zh-CN' },
6565
link: [
66-
{ rel: 'icon', type: 'image/x-icon', href: '/public/favicon.ico' },
66+
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
6767
{
6868
rel: 'stylesheet',
6969
href: 'https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap',

0 commit comments

Comments
 (0)